action

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

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 Actions

type Actions []Action

func (Actions) MarshalJSON

func (a Actions) MarshalJSON() ([]byte, error)

func (Actions) Set

func (a Actions) Set(h http.Header) error

type Call

type Call interface {
	Clean()
	Params() CallParams
	Action() (Action, bool)
	Payload() common.Writable
	Cancel()
	Result(json.RawMessage, error)
}

type CallParams

type CallParams struct {
	Optimistic bool
	Timeout    time.Duration
}

type DoorReplace

type DoorReplace struct {
	Id uint64
}

func (*DoorReplace) Invocation

func (a *DoorReplace) Invocation() *Invocation

func (*DoorReplace) Log

func (a *DoorReplace) Log() string

type DoorUpdate

type DoorUpdate struct {
	Id uint64
}

func (*DoorUpdate) Invocation

func (a *DoorUpdate) Invocation() *Invocation

func (*DoorUpdate) Log

func (a *DoorUpdate) Log() string

type DynaRemove

type DynaRemove struct {
	Id uint64
}

func (*DynaRemove) Invocation

func (a *DynaRemove) Invocation() *Invocation

func (*DynaRemove) Log

func (a *DynaRemove) Log() string

type DynaSet

type DynaSet struct {
	Id    uint64
	Value string
}

func (*DynaSet) Invocation

func (a *DynaSet) Invocation() *Invocation

func (*DynaSet) Log

func (a *DynaSet) Log() string

type Emit

type Emit struct {
	Name   string
	Arg    any
	DoorId uint64
}

func (*Emit) Invocation

func (a *Emit) Invocation() *Invocation

func (*Emit) Log

func (a *Emit) Log() string

type Indicate

type Indicate struct {
	Duration time.Duration
	Indicate any
}

func (*Indicate) Invocation

func (a *Indicate) Invocation() *Invocation

func (*Indicate) Log

func (a *Indicate) Log() string

type Invocation

type Invocation struct {
	// contains filtered or unexported fields
}

func (*Invocation) MarshalJSON

func (a *Invocation) MarshalJSON() ([]byte, error)

type LocationAssign

type LocationAssign struct {
	URL    string
	Origin bool
}

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

type LocationReplace struct {
	URL    string
	Origin bool
}

func (*LocationReplace) Invocation

func (a *LocationReplace) Invocation() *Invocation

func (*LocationReplace) Log

func (a *LocationReplace) 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

type Scroll struct {
	Selector string
	Smooth   bool
}

func (*Scroll) Invocation

func (a *Scroll) Invocation() *Invocation

func (*Scroll) Log

func (a *Scroll) Log() string

type SetPath

type SetPath struct {
	Path    string
	Replace bool
}

func (*SetPath) Invocation

func (a *SetPath) Invocation() *Invocation

func (*SetPath) Log

func (a *SetPath) Log() string

type Test

type Test struct {
	Arg any
}

func (*Test) Invocation

func (a *Test) Invocation() *Invocation

func (*Test) Log

func (a *Test) Log() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL