Documentation
¶
Overview ¶
Package runtime はページで使用する交換可能なGo実行環境を定義する。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
Document *dom.Document
Events *events.Dispatcher
BaseURL *url.URL
Fetch func(context.Context, *network.Request) (*network.Response, error)
FetchLimiter *fetchapi.Limiter
HistoryPush func(string, *url.URL) error
HistoryReplace func(string, *url.URL) error
HistoryTraverse func(int) error
HistoryInfo func() (int, string)
LocalStorage *storagecore.Area
SessionStorage *storagecore.Area
StorageSource storagecore.MutationSource
OnMutation func()
RequestFrame func()
FrameScope func(time.Time, func())
ConsoleLog func(message string)
}
Environment はRuntimeへ公開するページの状態を保持する。
type LocationUpdater ¶ added in v0.9.0
LocationUpdater はsame-document Navigationを現在Runtimeへ通知する。
type NavigationEventDispatcher ¶ added in v0.9.0
type NavigationEventDispatcher interface {
}
NavigationEventDispatcher はNavigation Eventを現在Runtimeへ配送する。
Click to show internal directories.
Click to hide internal directories.