cache

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeCache

func InitializeCache() error

func ReadCache

func ReadCache() (events []*api.Event, err error)

return a list sorted by event time,

func StoreEvents

func StoreEvents(events []*api.Event) error

Types

type ByEventTime

type ByEventTime []*api.Event

func (ByEventTime) Len

func (a ByEventTime) Len() int

func (ByEventTime) Less

func (a ByEventTime) Less(i, j int) bool

func (ByEventTime) Swap

func (a ByEventTime) Swap(i, j int)

Jump to

Keyboard shortcuts

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