Versions in this module Expand all Collapse all v0 v0.2.7 Jul 12, 2021 v0.1.4 Mar 6, 2020 Changes in this version + var ErrNotFound = errors.New("not found") + var ErrZeroKey = errors.New("0-length key") + type AESEncryptedStorage struct + func NewAESEncryptedStorage(filename string, key []byte) *AESEncryptedStorage + func (s *AESEncryptedStorage) Del(key string) + func (s *AESEncryptedStorage) Get(key string) (string, error) + func (s *AESEncryptedStorage) Put(key, value string) + type EphemeralStorage struct + func (s *EphemeralStorage) Del(key string) + func (s *EphemeralStorage) Get(key string) (string, error) + func (s *EphemeralStorage) Put(key, value string) + type NoStorage struct + func (s *NoStorage) Del(key string) + func (s *NoStorage) Get(key string) (string, error) + func (s *NoStorage) Put(key, value string) + type Storage interface + Del func(key string) + Get func(key string) (string, error) + Put func(key, value string) + func NewEphemeralStorage() Storage