Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckProbability ¶
func GetCurFileDir ¶
func GetCurFileDir() string
func LoadCachedFile ¶
Types ¶
type PeriodicProbabilityChecker ¶
type PeriodicProbabilityChecker struct {
// contains filtered or unexported fields
}
func NewPeriodicProbabilityChecker ¶
func NewPeriodicProbabilityChecker(prob string, period time.Duration) *PeriodicProbabilityChecker
func (*PeriodicProbabilityChecker) Check ¶
func (twp *PeriodicProbabilityChecker) Check() bool
func (*PeriodicProbabilityChecker) Reset ¶
func (twp *PeriodicProbabilityChecker) Reset(clock *Clock)
type Stopwatch ¶
type Stopwatch struct {
// contains filtered or unexported fields
}
func NewStopwatch ¶
type ThreadSafeFIFO ¶
func NewThreadSafeFIFO ¶
func NewThreadSafeFIFO(cap int) *ThreadSafeFIFO
func (*ThreadSafeFIFO) Push ¶
func (f *ThreadSafeFIFO) Push(e interface{})
func (*ThreadSafeFIFO) TryPop ¶
func (f *ThreadSafeFIFO) TryPop() (interface{}, bool)
Click to show internal directories.
Click to hide internal directories.