Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltTime ¶
BoltTime is a type that fulfils the TimeStore interface
func NewBoltTime ¶
NewBoltTime returns a initialised BoltTime instance
func (*BoltTime) DeleteBefore ¶
DeleteBefore deletes all entries before time t
func (*BoltTime) GetLatestN ¶
GetLastestN retrieves n most recent entries
type TimeBucket ¶
type TimeBucket interface {
Put(bucket string, entry Entry) error
Get(t time.Time) []Entry
GetSince(t time.Time) []Entry
GetBefore(t time.Time) []Entry
GetNewestN(n int) []Entry
GetOldestN(n int) []Entry
Delete(t time.Time) error
DeleteSince(t time.Time) error
DeleteBefore(t time.Time) error
DeleteNewestN(n int) error
DeleteOldestN(n int) error
}
Click to show internal directories.
Click to hide internal directories.