Documentation
¶
Index ¶
- func ByAge(ctx context.Context, l klevdb.Log, before time.Time) (map[int64]struct{}, int64, error)
- func ByCount(ctx context.Context, l klevdb.Log, max int) (map[int64]struct{}, int64, error)
- func ByOffset(ctx context.Context, l klevdb.Log, before int64) (map[int64]struct{}, int64, error)
- func BySize(ctx context.Context, l klevdb.Log, sz int64) (map[int64]struct{}, int64, error)
- func FindByAge(ctx context.Context, l klevdb.Log, before time.Time) (map[int64]struct{}, error)
- func FindByCount(ctx context.Context, l klevdb.Log, max int) (map[int64]struct{}, error)
- func FindByOffset(ctx context.Context, l klevdb.Log, before int64) (map[int64]struct{}, error)
- func FindBySize(ctx context.Context, l klevdb.Log, sz int64) (map[int64]struct{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByAge ¶
ByAge tries to remove the messages at the start of the log before given time.
returns the offsets it deleted and the amount of storage freed
func ByCount ¶ added in v0.2.3
ByCount tries to remove messages to keep the number of messages in the log under max count.
returns the offsets it deleted and the amount of storage freed
func ByOffset ¶ added in v0.2.5
ByOffset tries to remove the messages at the start of the log before offset
returns the offsets it deleted and the amount of storage freed
func BySize ¶
BySize tries to remove messages until log size is less then sz
returns the offsets it deleted and the amount of storage freed
func FindByAge ¶ added in v0.3.0
FindByAge returns a set of offsets for messages that are at the start of the log and before given time.
func FindByCount ¶ added in v0.3.0
FindByCount returns a set of offsets for messages that when removed will keep number of the messages in the log less then max
func FindByOffset ¶ added in v0.3.0
FindByOffset returns a set of offsets for messages that offset is before a given offset
Types ¶
This section is empty.