cli

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 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]

WorkerFlag validates that worker count is between 1 and 2^20

Jump to

Keyboard shortcuts

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