Versions in this module Expand all Collapse all v2 v2.4.3 Feb 9, 2022 Changes in this version + func CursorKey(key string) string + type Config struct + IgnoreInvalidYaml bool + PositionsFile string + ReadOnly bool + SyncPeriod time.Duration + func (cfg *Config) RegisterFlags(flags *flag.FlagSet) + func (cfg *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) + type File struct + Positions map[string]string + type Positions interface + Get func(path string) (int64, error) + GetString func(path string) string + Put func(path string, pos int64) + PutString func(path string, pos string) + Remove func(path string) + Stop func() + SyncPeriod func() time.Duration + func New(logger log.Logger, cfg Config) (Positions, error)