Documentation
¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtSender ¶
type ExtSender struct{}
ExtSender sends messages within our own extension.
ExtSender implements the Sender interface.
func NewLocalSender ¶
func NewLocalSender() *ExtSender
NewLocalSender returns a ExtSender for sending messages within our own extension.
type Sender ¶
type Sender interface {
// Send sends a message. Response (or an error) are returned. See:
// https://developer.chrome.com/docs/extensions/reference/runtime/#method-sendMessage
Send(ctx jsutil.AsyncContext, msg js.Value) (js.Value, error)
}
Sender specifies the interface for a type that sends messages.
Click to show internal directories.
Click to hide internal directories.