cmd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: 0BSD Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCmdMethodUndefined = fmt.Errorf("cmd method undefined")

Functions

func FRun

func FRun(target types.KeyManager, cmdRun types.CmdRun) (types.CmdRun, error)

func RegisterEC

func RegisterEC(encodedConn *nats.EncodedConn)

func SRun

func SRun(cmd types.CmdRun) (types.CmdRun, error)

Types

type Cmd added in v0.0.3

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

func (Cmd) Apply added in v0.0.3

func (c Cmd) Apply(ctx context.Context) (types.Result, error)

func (Cmd) Methods added in v0.0.3

func (c Cmd) Methods() (string, []string)

func (Cmd) Parse added in v0.0.3

func (c Cmd) Parse(id, method string, params map[string]interface{}) (types.RecipeCooker, error)

TODO parse out the map here

func (Cmd) Properties added in v0.0.3

func (c Cmd) Properties() (map[string]interface{}, error)

func (Cmd) PropertiesForMethod added in v0.0.3

func (c Cmd) PropertiesForMethod(method string) (map[string]string, error)

TODO create map for method: type

func (Cmd) Test added in v0.0.3

func (c Cmd) Test(ctx context.Context) (types.Result, error)

Jump to

Keyboard shortcuts

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