command

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrConfigFormatInvalid defines the error if ext is unsupported.
	ErrConfigFormatInvalid = errors.New("config extension is not supported")
)

Functions

func Health

func Health(cfg *config.Config) *cli.Command

Health provides the sub-command to perform a health check.

func HealthFlags added in v1.1.0

func HealthFlags(cfg *config.Config) []cli.Flag

HealthFlags defines the available health flags.

func RootFlags added in v1.1.0

func RootFlags(cfg *config.Config) []cli.Flag

RootFlags defines the available root flags.

func Run

func Run() error

Run parses the command line arguments and executes the program.

func Server

func Server(cfg *config.Config) *cli.Command

Server provides the sub-command to start the server.

func ServerFlags added in v1.1.0

func ServerFlags(cfg *config.Config) []cli.Flag

ServerFlags defines the available server flags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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