Versions in this module Expand all Collapse all v1 v1.0.1 Nov 25, 2020 Changes in this version + func CaptureException() + func NewPrometheusHandlerWrapper(opts ...server.Option) server.HandlerWrapper + type FakeRandom struct + func NewFakeRandom(seed int) *FakeRandom + func (f *FakeRandom) Rand() int + func (f *FakeRandom) RandSection(min, max int) int + func (f *FakeRandom) Reset(seed int) v1.0.0 May 18, 2020 Changes in this version + func InitMachineID(machineID int16) + func MachineID(id int64) int16 + func MachineIDHigh(id int64) int16 + func MachineIDLow(id int64) int16 + func NextID(tp int) (int64, error) + func SectionIDRandSelector(id int64) selector.SelectOption + func SpecificIDSelector(id int64) selector.SelectOption + type CacheDBLoadCB func(interface{}) + type CacheLoader struct + func NewCacheLoader(ctx context.Context, coll *mongo.Collection, docField string, ...) *CacheLoader + func (c *CacheLoader) Delete(key interface{}) + func (c *CacheLoader) Load(key interface{}) CacheObjector + func (c *CacheLoader) LoadFromDB(key interface{}) CacheObjector + func (c *CacheLoader) LoadFromMemory(key interface{}) CacheObjector + func (c *CacheLoader) PureLoadFromDB(key interface{}) []CacheObjector + func (c *CacheLoader) Store(obj interface{}) + type CacheObjectNewFunc func() interface + type CacheObjector interface + GetExpire func() *time.Timer + GetObjID func() interface{} + ResetExpire func() + StopExpire func() + type Snowflakes struct + type WaitGroupWrapper struct + func (w *WaitGroupWrapper) Wrap(cb func())