Documentation ¶ Index ¶ type FileDB func NewFileDB(filePath string) (*FileDB, error) func (db *FileDB) BatchSet(pairs []types.KeyValue) (int, error) func (db *FileDB) Get(key string) (string, bool) func (db *FileDB) GetAll() []types.KeyValue func (db *FileDB) ScanGet(key string) (types.KeyValue, bool) func (db *FileDB) Set(key, value string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type FileDB ¶ type FileDB struct { // contains filtered or unexported fields } func NewFileDB ¶ func NewFileDB(filePath string) (*FileDB, error) func (*FileDB) BatchSet ¶ func (db *FileDB) BatchSet(pairs []types.KeyValue) (int, error) func (*FileDB) Get ¶ func (db *FileDB) Get(key string) (string, bool) func (*FileDB) GetAll ¶ func (db *FileDB) GetAll() []types.KeyValue func (*FileDB) ScanGet ¶ func (db *FileDB) ScanGet(key string) (types.KeyValue, bool) func (*FileDB) Set ¶ func (db *FileDB) Set(key, value string) error Source Files ¶ View all Source files localdb.go Click to show internal directories. Click to hide internal directories.