localkv

package
v0.0.0-...-b8f6e48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalKV

type LocalKV struct {
	// contains filtered or unexported fields
}

LocalKV Structure to hold the db client

func NewLocalKV

func NewLocalKV(databasePath *string) (*LocalKV, error)

NewLocalKV constructor for the db client

func (*LocalKV) Close

func (l *LocalKV) Close() error

Close closes the db

func (*LocalKV) Get

func (l *LocalKV) Get(key string) (string, error)

Get gets a value from the db

func (*LocalKV) RemoveDB

func (l *LocalKV) RemoveDB() error

RemoveDB removes db file

func (*LocalKV) Set

func (l *LocalKV) Set(key, value string) error

Set sets a value in the db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL