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