storage

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("Browser not implemented Storage")
	ErrNotAStorage    = errors.New("Object is not a Storage object")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the Storage interface

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) (interface{}, error)

func (Storage) Key

func (l Storage) Key(index int) (interface{}, 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