cmds

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingArgs      = errors.New("missing arguments")
	ErrValidation       = errors.New("validation failed")
	ErrMissingCertOrKey = errors.New("cert and key must be both set")
	ErrEmptyAddress     = errors.New("address must not be empty")
	ErrNoSource         = errors.New("at least 1 proto file must be specified or reflection used")
)

Functions

This section is empty.

Types

type Call

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

Call represents a command to make an RPC call.

func NewCall

func NewCall(fs afero.Fs, cfg *config.Config) *Call

NewCall creates a new Call command.

func (*Call) Run

func (c *Call) Run(cmd *cobra.Command, args []string) error

Run executes the Call command.

type Request

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

Request represents a command to build formatted request string or file.

func NewRequest

func NewRequest(fs afero.Fs, cfg *config.Config) *Request

NewRequest creates a new Request instance.

func (*Request) Run

func (r *Request) Run(cmd *cobra.Command, args []string) error

Run executes the Request command.

Jump to

Keyboard shortcuts

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