Documentation
¶
Overview ¶
Package fs implements a key-value store that stores keys as file names and values as file content.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶ added in v0.7.0
type Store struct { // Dir is the directory where key-value entries // are located. The store will read / write // values from / to files in this directory. Dir string // ErrorLog specifies an optional logger for errors // when files cannot be opened, deleted or contain // invalid content. // If nil, logging is done via the log package's // standard logger. ErrorLog *log.Logger }
Store is a file system key-value store that stores keys as file names in a directory.
func (*Store) Create ¶ added in v0.7.0
Create creates a new file in the directory if no file with the name 'key' does not exists and writes value to it. If such a file already exists it returns kes.ErrKeyExists.
Click to show internal directories.
Click to hide internal directories.