storage

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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