base

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: GPL-3.0 Imports: 6 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 struct {
	Name       string              `json:"name"`
	Label      string              `json:"label"`
	Parameters []*types.SmartField `json:"parameters,omitempty"`
	Return     []*types.SmartField `json:"return,omitempty"`
	Executors  []*Executor         `json:"executors,omitempty"`
}

func (*Action) GetExecutors

func (a *Action) GetExecutors(args any) (es []*Executor, err error)

func (*Action) Init

func (a *Action) Init() (err error)

type Executor

type Executor struct {
	Point string        `json:"point,omitempty"`
	Value any           `json:"value,omitempty"`
	Delay time.Duration `json:"delay,omitempty"` //延迟 ms
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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