storage

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAnLocalStorage = errors.New("Object is not an Local Storage object")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get teh JS interface of broadcast channel

Types

type Storage

type Storage struct {
	baseobject.BaseObject
}

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Storage, error)

func (Storage) Clear

func (l Storage) Clear() error

func (Storage) GetItem

func (l Storage) GetItem(key string) (string, error)

func (Storage) Key

func (l Storage) Key(index int) (string, error)

func (Storage) RemoveItem

func (l Storage) RemoveItem(key string) error

func (Storage) SetItem

func (l Storage) SetItem(key, value string) error

func (Storage) Storage

func (s Storage) Storage() Storage

type StorageFrom

type StorageFrom interface {
	Storage() Storage
}

Jump to

Keyboard shortcuts

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