recordlog

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT, MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxTime

func MaxTime() time.Time

MaxTime returns the maximum time in go

func MinTime

func MinTime() time.Time

MinTime returns the zero or minimum time

func NewRecords

func NewRecords() (record.Record, record.Record)

NewRecords returns an instance of each record type in this package

Types

type RecordLog

type RecordLog interface {
	general.LoggerFactory

	Open(created time.Time) (general.Logger, error)

	SetTTL(generalLog general.Logger, ttl time.Duration) error

	Delete(created time.Time) error

	Range(
		start time.Time,
		reverse bool,
		cb func(created time.Time, name string) bool,
	) error

	RangeLog(
		logCreated time.Time,
		start time.Time,
		reverse bool,
		cb func(created time.Time, message string) bool,
	) error
}

RecordLog interface allows managing named logs

func New

func New(recorderDB record.RecorderDB) RecordLog

New creates a RecordLog

Jump to

Keyboard shortcuts

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