Documentation ¶ Index ¶ func Init(db *bbolt.DB, bucket []byte, dataInterfaces []DataInterface) error type Data type DataInterface Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Init ¶ func Init(db *bbolt.DB, bucket []byte, dataInterfaces []DataInterface) error Types ¶ type Data ¶ type Data[T any] struct { Key string CronSpec string Current T Updated time.Time // do not use. this gets fresh data. use Current Retrieve func() (T, error) } type DataInterface ¶ type DataInterface interface { // contains filtered or unexported methods } Source Files ¶ View all Source files cache.godata.go Click to show internal directories. Click to hide internal directories.