Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarshalFunc ¶
MarshalFunc converts an interface to bytes that can be stored.
type Storage ¶
type Storage struct { Backend backend.Backend Marshal MarshalFunc Unmarshal UnmarshalFunc }
Storage ...
func New ¶
func New(b backend.Backend, m MarshalFunc, u UnmarshalFunc) *Storage
New initializes a new Storage backend.
type UnmarshalFunc ¶
UnmarshalFunc coverts stored bytes to an interface.
Click to show internal directories.
Click to hide internal directories.