inner

package
v0.0.0-...-adc1ce0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultFlags = []cli.Flag{
		&cli.StringFlag{
			Name:  "listen-addr",
			Value: "0.0.0.0",
			Usage: "Application listen address",
		},
		&cli.IntFlag{
			Name:  "listen-port",
			Value: 7700,
			Usage: "Application listen port",
		},
		&cli.StringFlag{
			Name:  "log-level",
			Value: "info",
			Usage: "Set log level (debug, info, warn, error)",
		},
		&cli.BoolFlag{
			Name:  "pretty",
			Usage: "Set log format to pretty print",
		},
	}
)

Functions

This section is empty.

Types

type Cli

type Cli struct {
	Flags []cli.Flag
}

func NewCli

func NewCli() *Cli

func (*Cli) AppendFlags

func (c *Cli) AppendFlags(opts []cli.Flag)

func (*Cli) Finalize

func (c *Cli) Finalize(appName, appVersion, steveVersion string, action cli.ActionFunc) error

func (*Cli) WithTLS

func (c *Cli) WithTLS()

Jump to

Keyboard shortcuts

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