Documentation
¶
Overview ¶
Package store provides an interface as well as implementations for storing proto messages to various surfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
Load(string, proto.Message) error
Save(string, proto.Message) error
Delete(string) error
}
func NewEphemeralStore ¶
func NewEphemeralStore() Store
func NewFSStore ¶
NewFSStore returns a filesystem based store starting at dir. Checks if dir exists by performing os.Stat.
Click to show internal directories.
Click to hide internal directories.