Documentation ¶
Index ¶
- func Debug() bool
- func Type(data any) reflect.Kind
- type Content
- type List
- type Snapshot
- type Store
- func (s *Store) Delete(key any) bool
- func (s *Store) Export() *Snapshot
- func (s *Store) Get(key any) (any, bool)
- func (s *Store) GetBool(key any) bool
- func (s *Store) GetBools(key any) []bool
- func (s *Store) GetByte(key any) byte
- func (s *Store) GetBytes(key any) []byte
- func (s *Store) GetFloat64(key any) float64
- func (s *Store) GetFloat64s(key any) []float64
- func (s *Store) GetInt(key any) int
- func (s *Store) GetInt64(key any) int64
- func (s *Store) GetInt64s(key any) []int64
- func (s *Store) GetInts(key any) []int
- func (s *Store) GetString(key any) string
- func (s *Store) GetStrings(key any) []string
- func (s *Store) Import(snap *Snapshot) *Store
- func (s *Store) List() List
- func (s *Store) Set(key, data any) bool
- func (s *Store) State(key any) (time.Time, bool)
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct { // Logger adds a prefix of "store: " by default. Logger *log.Logger // contains filtered or unexported fields }
Store is the main datatype that holds runtime.
func (*Store) Delete ¶
Delete removes the item called by the given key and return true if the key existed.
func (*Store) GetFloat64 ¶
GetFloat64 looks up items by the given key and returns the data as float64.
func (*Store) GetFloat64s ¶
GetFloat64s looks up items by the given key and returns the data as []float64.
func (*Store) GetInt64s ¶
GetInt64s looks up items by the given key and returns the data as []int64.
func (*Store) GetStrings ¶
GetStrings looks up items by the given key and returns the data as []string.
Click to show internal directories.
Click to hide internal directories.