Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExpireNever is the TTL value to use for an object that should never expire ExpireNever = time.Duration(-1) )
Variables ¶
View Source
var ( // ErrorNotFound indicates that the requested data was not found ErrorNotFound = errors.New("data not found") // ErrorZeroLengthFileName indicates that the requested file name was zero length ErrorZeroLengthFileName = errors.New("zero length file name was provided") // ErrorZeroLengthData indicates that the data provided for storage was zero length ErrorZeroLengthData = errors.New("zero length data was provided") )
Functions ¶
This section is empty.
Types ¶
type Mediator ¶
type Mediator struct {
StoreRetriever StoreRetriever
}
Mediator handles sanitising data before storage and (if necessary) after retrieval
func NewMediator ¶
func NewMediator(sr StoreRetriever) Mediator
NewMediator instantiates a new Mediator for a gien StoreRetriever, allowing sanitisation of data before storage
func (*Mediator) Contains ¶
Contains takes a path and returns whether or not the value is contained in the data store
type StoreRetriever ¶
StoreRetriever groups Storer and Retriever functions
Click to show internal directories.
Click to hide internal directories.