Documentation
¶
Overview ¶
Package storage はWebGoへLocal StorageとSession Storageを公開する。
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API はPageのLocal / Session Storageを明示的に分離する。
func NewPage ¶ added in v0.10.0
func NewPage(local, session *storagecore.Area, source storagecore.MutationSource, enqueue func(func()) bool) *API
NewPage creates a page-scoped API and subscribes it to Local Storage events.
func (*API) Close ¶ added in v0.10.0
func (api *API) Close()
Close stops Local Storage event delivery to this page.
type Event ¶ added in v0.10.0
type Event = storagecore.Change
Event is delivered when another same-origin page commits Local Storage.
Click to show internal directories.
Click to hide internal directories.