Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type DefaultComparer ¶
type DefaultComparer[T constraints.Ordered] struct { Val T }
func (DefaultComparer[T]) Compare ¶
func (dc DefaultComparer[T]) Compare(other DefaultComparer[T]) int
type DefaultKeyable ¶
type DefaultKeyable[T comparable] struct { Val T }
func (DefaultKeyable[T]) Key ¶
func (dk DefaultKeyable[T]) Key() T
type Keyable ¶
type Keyable[K comparable] interface { Key() K }
type TimeComparer ¶
type TimeComparer[T Timed] struct { Val T }
func (TimeComparer[T]) Compare ¶
func (tc TimeComparer[T]) Compare(other TimeComparer[T]) int
type TimeProvider ¶
type TimeProvider interface { Now() time.Time NewTicker(d time.Duration) Ticker NewTimer(d time.Duration) Timer After(d time.Duration) <-chan time.Time AfterFunc(d time.Duration, f func()) Timer Sleep(d time.Duration) Since(d time.Time) time.Duration }
func NewRealTimeProvider ¶
func NewRealTimeProvider() TimeProvider
Click to show internal directories.
Click to hide internal directories.