Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadError ¶
type LoadError struct {
Err error
}
LoadError wraps errors yielded by Store.Load and Store.LoadFrom methods
type SaveError ¶
type SaveError struct {
Err error
}
SaveError wraps errors yielded by Store.Save and Store.SaveTo methods
type Store ¶
type Store interface { // New creates a new config.Config to store New(config.Version) error // Load retrieves the config.Config from the persistence backend Load() error // LoadFrom retrieves the config.Config from the persistence backend at the specified key LoadFrom(string) error // Save stores the config.Config into the persistence backend Save() error // SaveTo stores the config.Config into the persistence backend at the specified key SaveTo(string) error // Config returns the stored config.Config Config() config.Config }
Store represents a persistence backend for config.Config
Click to show internal directories.
Click to hide internal directories.