Documentation
¶
Index ¶
- type KeyError
- type Store
- func (s *Store) Delete(key string)
- func (s *Store) Get(key string) (interface{}, bool)
- func (s *Store) MustGet(key string) interface{}
- func (s *Store) Set(key string, value interface{})
- func (s *Store) Update(f func(map[string]interface{}) error) error
- func (s *Store) View(f func(map[string]interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyError ¶
type KeyError struct {
Key string
}
KeyError is returned when a corresponding key is missing in store
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides simple thread-safe storage for application. It supposed to be injected into context using WithStore function
Click to show internal directories.
Click to hide internal directories.