Versions in this module Expand all Collapse all v0 v0.1.3 Sep 18, 2023 v0.1.1 Sep 18, 2023 Changes in this version + const PruningOptionCustom + const PruningOptionDefault + const PruningOptionEverything + const PruningOptionNothing + var ErrPruningIntervalTooSmall = fmt.Errorf(...) + var ErrPruningIntervalZero = errors.New(...) + var ErrPruningKeepRecentTooSmall = fmt.Errorf(...) + type PruningOptions struct + Interval uint64 + KeepRecent uint64 + Strategy PruningStrategy + func NewCustomPruningOptions(keepRecent, interval uint64) PruningOptions + func NewPruningOptions(pruningStrategy PruningStrategy) PruningOptions + func NewPruningOptionsFromString(strategy string) PruningOptions + func (po PruningOptions) GetPruningStrategy() PruningStrategy + func (po PruningOptions) Validate() error + type PruningStrategy int + const PruningCustom + const PruningDefault + const PruningEverything + const PruningNothing + const PruningUndefined