Documentation
¶
Index ¶
- Constants
- Variables
- func Log(ctx context.Context, level slog.Level, msg string, args ...interface{})
- func LookupPrefix(ctx context.Context, all config.T, prefix string) (context.Context, config.Prefix, error)
- func OpenDatabase(ctx context.Context, cfg config.Prefix, readonly bool) (database.DB, error)
- func OpenPrefixAndDatabase(ctx context.Context, all config.T, prefix string, readonly bool) (context.Context, config.Prefix, database.DB, error)
- func PrefixInfoAsFSInfo(pi prefixinfo.T, name string) fs.FileInfo
- func UseBadgerDB()
- type ScanDB
- type TimeRangeFlags
Constants ¶
View Source
const ( LogPrefix = slog.Level(-1) LogProgress = slog.LevelInfo LogError = slog.LevelError )
Variables ¶
View Source
var ( Verbosity = LogError LogDir string )
Functions ¶
func LookupPrefix ¶
func OpenDatabase ¶
func OpenPrefixAndDatabase ¶
func PrefixInfoAsFSInfo ¶
func PrefixInfoAsFSInfo(pi prefixinfo.T, name string) fs.FileInfo
PrefixInfoAsFSInfo returns a fs.FileInfo for the supplied PrefixInfo.
func UseBadgerDB ¶
func UseBadgerDB()
Types ¶
type ScanDB ¶
type ScanDB interface { GetPrefixInfo(ctx context.Context, key string, pi *prefixinfo.T) (bool, error) SetPrefixInfo(ctx context.Context, key string, unchanged bool, pi *prefixinfo.T) error LogError(ctx context.Context, key string, when time.Time, detail []byte) error LogAndClose(ctx context.Context, start, stop time.Time, detail []byte) error DeletePrefix(ctx context.Context, prefix string) error DeleteErrors(ctx context.Context, prefix string) error Close(ctx context.Context) error }
type TimeRangeFlags ¶
Click to show internal directories.
Click to hide internal directories.