rpc

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister

func MustRegister()

func Register

func Register() error

Types

type Command

type Command struct {
	StandardFilter        bool               `json:"std_filters"`
	OutputFormatFlags     bool               `json:"output_format_flags"`
	OutputFormat          string             `json:"output_format"`
	Display               string             `json:"display"`
	DisplayFlag           bool               `json:"display_flag"`
	BatchFlags            bool               `json:"batch_flags"`
	BatchSize             int                `json:"batch"`
	BatchSleep            int                `json:"batch_sleep"`
	NoProgress            bool               `json:"no_progress"`
	AllNodesConfirmPrompt string             `json:"all_nodes_confirm_prompt"`
	Flags                 []Flag             `json:"flags"`
	Request               Request            `json:"request"`
	Transform             *builder.Transform `json:"transform"`

	builder.GenericCommand
	builder.GenericSubCommands
}

type Flag

type Flag struct {
	builder.GenericFlag
	ReplyFilter string `json:"reply_filter"`
}

type RPC

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

func (*RPC) CreateCommand

func (r *RPC) CreateCommand(app builder.KingpinCommand) (*fisk.CmdClause, error)

func (*RPC) String

func (r *RPC) String() string

func (*RPC) SubCommands

func (r *RPC) SubCommands() []json.RawMessage

func (*RPC) Validate

func (r *RPC) Validate(log builder.Logger) error

type Request

type Request struct {
	Agent  string                     `json:"agent"`
	Action string                     `json:"action"`
	Params map[string]string          `json:"inputs"`
	Filter *discovery.StandardOptions `json:"filter"`
}

Jump to

Keyboard shortcuts

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