Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteParams ¶
type DeleteParams struct {
Key string `json:"key"`
}
DeleteParams is the params for env.delete.
type GetParams ¶
type GetParams struct {
Key string `json:"key"`
}
GetParams is the params for env.get.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a thread-safe in-memory key-value store for environment variables.
func (*Store) Delete ¶
func (s *Store) Delete(raw json.RawMessage) (interface{}, error)
Delete removes a key.
func (*Store) Get ¶
func (s *Store) Get(raw json.RawMessage) (interface{}, error)
Get returns the value for a key, or nil if not set.
Click to show internal directories.
Click to hide internal directories.