Documentation ¶
Rendered for js/wasm
Index ¶
Constants ¶
View Source
const ( NewStateTag worker.Tag = "NewState" SetTag worker.Tag = "Set" GetTag worker.Tag = "Get" )
List of tags that can be used when sending a message or registering a handler to receive a message.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NewStateMessage ¶
type NewStateMessage struct {
DatabaseName string `json:"databaseName"`
}
NewStateMessage is JSON marshalled and sent to the worker for NewState.
type TransferMessage ¶
type TransferMessage struct { Key string `json:"key"` Value []byte `json:"value"` Error string `json:"error"` }
TransferMessage is JSON marshalled and sent to the worker.
Click to show internal directories.
Click to hide internal directories.