Documentation ¶
Overview ¶
Package storage provides storage for the cachable token interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("token not found") ErrStorageFailure = errors.New("storage failure") )
Err* are sentinel errors.
Functions ¶
func WithReadError ¶
WithReadError sets the error for the read function to return.
Types ¶
type File ¶
type File struct {
Path string
}
File provides simple file-backed storage for the token interface.
type Storage ¶
Storage is the interface that stores and retrieves bytes from disk. It is ... similar to the io.ReadWriter, except the Read/Write methods make assumptions that the underlying data should be truncated before new data is written in, and that users always want the full set of bytes.
Click to show internal directories.
Click to hide internal directories.