Documentation ¶
Overview ¶
Package mem is an in-memory implementation of the `key.Storage` interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyStorage ¶
KeyStorage implements the key.Storage interface using memory as the storage device. Retrival and creation of keys on KeyStorage is the thread-safe.
func (*KeyStorage) Get ¶
func (s *KeyStorage) Get(id string) (*key.Key, error)
Get retrieves a key identified by id from memory.
func (*KeyStorage) Open ¶
func (s *KeyStorage) Open(config []byte) error
Open initializes a new in-memory `KeyStorage`. The config is not used and can be left empty.
Click to show internal directories.
Click to hide internal directories.