localstorage

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

README

LocalStorage

Implement Web LocalStorage based on Badger.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorage

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

func NewLocalStorage

func NewLocalStorage(directory string) (*LocalStorage, error)

func (*LocalStorage) Close

func (obj *LocalStorage) Close() error

func (*LocalStorage) Exists

func (obj *LocalStorage) Exists(key string) bool

func (*LocalStorage) GetItem

func (obj *LocalStorage) GetItem(key string) ([]byte, error)

func (*LocalStorage) RemoveItem

func (obj *LocalStorage) RemoveItem(key string) error

func (*LocalStorage) SetItem

func (obj *LocalStorage) SetItem(key string, data interface{}) error

Jump to

Keyboard shortcuts

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