args

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

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

func NewArg

func NewArg(cmdName string) *Args

func (*Args) Add

func (a *Args) Add(name string, command *Command)

func (Args) Exec

func (a Args) Exec(ctx context.Context, req *proto.ExecRequest, rsp *proto.ExecResponse) error

type Command

type Command struct {
	Funcptr func(ctx context.Context, request *proto.ExecRequest) string
	Help    string
}

Jump to

Keyboard shortcuts

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