Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type KeyValueStore ¶
type KeyValueStore interface { Read(key string, value interface{}) error Write(key string, value interface{}) error Flush() error Lock(block bool) error Unlock() error GetModificationTime() (time.Time, error) }
KeyValueStore represents a persistent store of (key,value) pairs.
func NewJsonFileStore ¶
func NewJsonFileStore(fileName string) (KeyValueStore, error)
NewJsonFileStore creates a new jsonFileStore object, accessed as a KeyValueStore.
Click to show internal directories.
Click to hide internal directories.