Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Data stores a serialized data for history. Data string `hcl:"data"` // WriteError is a flag to return an error on Write(). WriteError bool `hcl:"write_error"` // ReadError is a flag to return an error on Read(). ReadError bool `hcl:"read_error"` // contains filtered or unexported fields }
Config is a config for mock storage.
func (*Config) NewStorage ¶
NewStorage returns a new instance of storage.Storage.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is a storage.Storage implementation for mock. It writes and reads data from memory.
func NewStorage ¶
NewStorage returns a new instance of Storage.
Click to show internal directories.
Click to hide internal directories.