Documentation
¶
Index ¶
- type Action
- type Actions
- type AttrSet
- type Binary
- type BinaryGZ
- type Call
- type CallParams
- type DoorFreeze
- type DoorReplace
- type DoorUpdate
- type Emit
- type EmitEvent
- type Indicate
- type Invocation
- type JSON
- type JSONGZ
- type LocationAssign
- type LocationReload
- type LocationReplace
- type Payload
- func IntoPayload(v any, gz bool) (Payload, error)
- func NewBinary(v []byte) Payload
- func NewBinaryGZ(v []byte) Payload
- func NewEmptyPayload() Payload
- func NewJSON(v []byte) Payload
- func NewJSONGZ(v []byte) Payload
- func NewNone() Payload
- func NewText(v string) Payload
- func NewTextBytes(text []byte) Payload
- func NewTextGZ(v []byte) Payload
- type PayloadType
- type RemoveMeta
- type ReportHook
- type Scroll
- type SetPath
- type Test
- type Text
- type TextBytes
- type TextGZ
- type UpdateMeta
- type UpdateState
- type UpdateTitle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action interface {
Invocation() Invocation
Log() string
}
type AttrSet ¶
func (AttrSet) Invocation ¶
func (a AttrSet) Invocation() Invocation
type Call ¶
type Call interface {
Params() CallParams
Action() (action Action, free func(), ok bool)
Cancel()
Result(json.RawMessage, error)
}
type CallParams ¶
type DoorFreeze ¶
type DoorFreeze struct {
ID uint64
}
func (DoorFreeze) Invocation ¶
func (a DoorFreeze) Invocation() Invocation
func (DoorFreeze) Log ¶
func (a DoorFreeze) Log() string
type DoorReplace ¶
func (DoorReplace) Invocation ¶
func (a DoorReplace) Invocation() Invocation
func (DoorReplace) Log ¶
func (a DoorReplace) Log() string
type DoorUpdate ¶
func (DoorUpdate) Invocation ¶
func (a DoorUpdate) Invocation() Invocation
func (DoorUpdate) Log ¶
func (a DoorUpdate) Log() string
type Emit ¶
func (Emit) Invocation ¶
func (a Emit) Invocation() Invocation
type EmitEvent ¶
func (EmitEvent) Invocation ¶
func (a EmitEvent) Invocation() Invocation
type Indicate ¶
func (Indicate) Invocation ¶
func (a Indicate) Invocation() Invocation
type Invocation ¶
type Invocation struct {
// contains filtered or unexported fields
}
func (Invocation) Func ¶
func (a Invocation) Func() []any
func (Invocation) MarshalJSON ¶
func (a Invocation) MarshalJSON() ([]byte, error)
func (Invocation) Payload ¶
func (a Invocation) Payload() Payload
type LocationAssign ¶
func (LocationAssign) Invocation ¶
func (a LocationAssign) Invocation() Invocation
func (LocationAssign) Log ¶
func (a LocationAssign) Log() string
type LocationReload ¶
type LocationReload struct{}
func (LocationReload) Invocation ¶
func (a LocationReload) Invocation() Invocation
func (LocationReload) Log ¶
func (a LocationReload) Log() string
type LocationReplace ¶
func (LocationReplace) Invocation ¶
func (a LocationReplace) Invocation() Invocation
func (LocationReplace) Log ¶
func (a LocationReplace) Log() string
type Payload ¶
type Payload struct {
// contains filtered or unexported fields
}
func NewBinaryGZ ¶
func NewEmptyPayload ¶
func NewEmptyPayload() Payload
func NewTextBytes ¶
func (Payload) MarshalJSON ¶
func (Payload) Type ¶
func (p Payload) Type() PayloadType
type PayloadType ¶
type PayloadType int
const ( PayloadNone PayloadType = 0x00 PayloadBinary PayloadType = 0x01 PayloadJSON PayloadType = 0x02 PayloadText PayloadType = 0x03 PayloadBinaryGZ PayloadType = 0x11 PayloadJSONGZ PayloadType = 0x12 PayloadTextGZ PayloadType = 0x13 )
type RemoveMeta ¶
func (RemoveMeta) Invocation ¶
func (u RemoveMeta) Invocation() Invocation
func (RemoveMeta) Log ¶
func (u RemoveMeta) Log() string
type ReportHook ¶
type ReportHook struct {
HookId uint64
}
func (ReportHook) Invocation ¶
func (a ReportHook) Invocation() Invocation
func (ReportHook) Log ¶
func (a ReportHook) Log() string
type Scroll ¶
func (Scroll) Invocation ¶
func (a Scroll) Invocation() Invocation
type SetPath ¶
func (SetPath) Invocation ¶
func (a SetPath) Invocation() Invocation
type Test ¶
type Test struct {
Arg any
}
func (Test) Invocation ¶
func (a Test) Invocation() Invocation
type UpdateMeta ¶
func (UpdateMeta) Invocation ¶
func (u UpdateMeta) Invocation() Invocation
func (UpdateMeta) Log ¶
func (u UpdateMeta) Log() string
type UpdateState ¶ added in v0.15.5
type UpdateState struct {
State map[string]json.RawMessage
}
func (UpdateState) Invocation ¶ added in v0.15.5
func (a UpdateState) Invocation() Invocation
func (UpdateState) Log ¶ added in v0.15.5
func (a UpdateState) Log() string
type UpdateTitle ¶
func (UpdateTitle) Invocation ¶
func (u UpdateTitle) Invocation() Invocation
func (UpdateTitle) Log ¶
func (u UpdateTitle) Log() string
Click to show internal directories.
Click to hide internal directories.