config

package
v0.0.0-...-0270fd5 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Verbose             bool   `short:"v" long:"verbose" description:"enable verbose output"`
	ListenAddress       string `required:"yes" short:"l" long:"listen-address" description:"listen address ip:port"`
	TargetAddress       string `required:"yes" short:"d" long:"destination-address" description:"destination address ip:port"`
	StartupMessageMatch string `required:"yes" short:"m" long:"match-line" description:"regex for matching startup message line"`
	Service             struct {
		Command []string `required:"yes" description:"the downstream service to start"`
	} `positional-args:"yes" `
}

func NewConfig

func NewConfig() *Config

func (*Config) Parse

func (c *Config) Parse(commandLine []string) error

func (*Config) PrintUsage

func (c *Config) PrintUsage(out io.Writer)

Jump to

Keyboard shortcuts

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