package
1.0.5-aliyun-alpha
Repository: https://github.com/alibaba/sentinel-golang.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
CurrentClock returns the current clock used by util package.
CurrentTickerCreator returns the current ticker creator used by util package.
Returns the current Unix timestamp in milliseconds.
No description provided by the author
Returns the current Unix timestamp in nanoseconds.
No description provided by the author
No description provided by the author
No description provided by the author
FormatDate formats Unix timestamp (ms) to date string.
FormatTimeMillis formats Unix timestamp (ms) to time string.
IsBlank checks whether the given string is blank.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Now returns the current local time.
No description provided by the author
SetClock sets the clock used by util package.
SetClock sets the ticker creator used by util package.
Sleep pauses the current goroutine for at least the duration d.
StartTimeTicker starts a background task that caches current timestamp per millisecond, which may provide better performance in high-concurrency scenarios.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
MockClock is used for testing.
MockTicker is usually used for testing.
MockTickerCreator is used create MockTicker which is usually used for testing.
RealClock wraps some APIs of time package.
RealTicker wraps time.Ticker.
RealTickerCreator is used to creates RealTicker which wraps time.Ticker.
SliceHeader is a safe version of SliceHeader used within this project.
StringHeader is a safe version of StringHeader used within this project.
# Interfaces
No description provided by the author
Ticker interface encapsulates operations like time.Ticker.
TickerCreator is used to create Ticker.