cmd

package
v0.0.0-...-2c8f587 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(cmd Cmd)

Types

type BaseCmd

type BaseCmd struct {
	PushPayload *util.Result
	// contains filtered or unexported fields
}

func (*BaseCmd) Id

func (cmd *BaseCmd) Id() float64

func (*BaseCmd) Push

func (cmd *BaseCmd) Push()

type Cmd

type Cmd interface {
	Name() string
	IsRead() bool // 非读即写
	Id() float64
	Exec()
}

func NewCommand

func NewCommand(cmdStr string, cmdId float64, param map[string]interface{}, session *melody.Session) (ret Cmd)

Jump to

Keyboard shortcuts

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