Versions in this module Expand all Collapse all v0 v0.0.1 Jun 21, 2024 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