cli

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessRequests

func ProcessRequests(context *execcontext.Context)

ProcessRequests wires up the request and response workers with channels and asks the parser to start sending requests

func SetupCommand

func SetupCommand(
	buildInfo BuildInfo,
	in io.Reader,
	stderr io.Writer,
	stdout io.Writer,
) *cli.Command

SetupCommand creates the cli.Command so it is wired up with the given in/stdout/stderr

Types

type BuildInfo

type BuildInfo struct {
	Version string
	Commit  string
	Date    string
}

func (BuildInfo) ToString

func (buildInfo BuildInfo) ToString() string

type WorkerFlag

type WorkerFlag = cli.FlagBase[int, cli.IntegerConfig, intValue]

the urfave/cli package only supports int64 flags, we only want realistic (>0, not too big) values

Jump to

Keyboard shortcuts

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