Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { // Returns the default filename for the persisent file DefaultFilename() string // Delay in writing to disk after modification WriteDelta() time.Duration // Path returns the path to the persistent file, or if empty // no writes happen to disk Path() string // Indent determines if the data should be written indented Indent() bool }
Config interface to return configuration values
type File ¶
File implements filesystem persistence with JSON
func (*File) Init ¶
Init initializes the persistence, passing in configuration, the data to persist and the logging module
func (*File) SetModified ¶
func (this *File) SetModified()
SetModified sets the modified flag to true
Click to show internal directories.
Click to hide internal directories.