Versions in this module Expand all Collapse all v0 v0.5.0 Nov 16, 2022 v0.4.1 Sep 24, 2022 v0.4.0 Sep 18, 2022 v0.3.0 Sep 9, 2022 Changes in this version + const RotatorModeDefault + const RotatorModeTruncatedTime + var ErrInvalidRotatorMode = errors.New("invalid rotator mode") type RotatorConfig + Mode RotatorMode + type RotatorMode string + func (r RotatorMode) Validate() error v0.2.0 Aug 31, 2022 Changes in this version type BitmapType + const BitmapTypeInMemory v0.1.4 Aug 29, 2022 v0.1.3 Aug 29, 2022 v0.1.2 Aug 29, 2022 v0.1.1 Aug 28, 2022 v0.1.0 Aug 28, 2022 Changes in this version + var ErrInvalidBitmapType = errors.New("invalid bitmap type") + type BitmapConfig struct + Type BitmapType + func (b BitmapConfig) Validate() error + type BitmapType string + const BitmapTypeBitSet + const BitmapTypeRedis + func (b BitmapType) Validate() error + type FactoryConfig struct + FilterConfig FilterConfig + RedisConfig RedisConfig + RotatorConfig RotatorConfig + func NewDefaultFactoryConfig() FactoryConfig + func (c FactoryConfig) Validate() error + type FilterConfig struct + BitmapConfig BitmapConfig + K uint64 + M uint64 + func (c FilterConfig) Validate() error + type RedisConfig struct + Addr string + Key string + Timeout time.Duration + func (c RedisConfig) Validate() error + type RotatorConfig struct + Enable bool + Freq time.Duration + func (c RotatorConfig) Validate() error