Store
type Store struct { // contains filtered or unexported fields}Store is a read-only representation of a config store.
Methods
Get
View sourcefunc (s *Store) Get(key string) (string, error)Get returns the value in the config store with the given key, if it exists.
Parameters
- key: string
Returns
(string, error)
GetBytes
View sourcefunc (s *Store) GetBytes(key string) ([]byte, error)GetBytes returns the value in the config store for the given key, if it exists, as a byte slice.
Parameters
- key: string
Returns
([]byte, error)
Has
View sourcefunc (s *Store) Has(key string) (bool, error)Has returns true if the key exists in the config store, without allocating space to read a value.
Parameters
- key: string
Returns
(bool, error)