trim

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByAge

func ByAge(ctx context.Context, l klevdb.Log, before time.Time) (map[int64]struct{}, int64, error)

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 BySize

func BySize(ctx context.Context, l klevdb.Log, sz int64) (map[int64]struct{}, int64, error)

BySize tries to remove messages until log size is less then sz returns the offsets it deleted and the amount of storage freed

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL