Versions in this module Expand all Collapse all v2 v2.0.0 Feb 21, 2025 Changes in this version + type Clock interface + Increment func(int64, int64) time.Time + Now func() time.Time + type DefaultClock struct + func (t *DefaultClock) Increment(_, _ int64) time.Time + func (t *DefaultClock) Now() time.Time + type DefaultRand struct + func (r *DefaultRand) Float64() float64 + func (r *DefaultRand) Int63n(n int64) int64 + func (r *DefaultRand) Intn(n int) int + type MockClock struct + NowNanos int64 + NowTime int64 + func (c *MockClock) Increment(s int64, ns int64) time.Time + func (c *MockClock) Now() time.Time + type MockRand struct + F64 float64 + Int int + Int64 int64 + func (r *MockRand) Float64() float64 + func (r *MockRand) Int63n(n int64) int64 + func (r *MockRand) Intn(n int) int + type Rand interface + Float64 func() float64 + Int63n func(n int64) int64 + Intn func(n int) int + type Timer struct + func NewTimer(d, jitter time.Duration) *Timer + func (j *Timer) C() <-chan time.Time + func (j *Timer) Reset() Other modules containing this package github.com/jj22ee/aws-xray-sdk-go