commands

package
v0.0.0-...-50e3d47 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:     "dummy",
	Short:   "Dummy Socket Client for Huron",
	PreRunE: loadConfig,
	RunE:    runDummy,
}

RootCmd is the root command for Dummy

Functions

This section is empty.

Types

type CLIConfig

type CLIConfig struct {
	Name       string `mapstructure:"name"`
	ClientAddr string `mapstructure:"client-listen"`
	ProxyAddr  string `mapstructure:"proxy-connect"`
	Discard    bool   `mapstructure:"discard"`
	LogLevel   string `mapstructure:"log"`
}

CLIConfig contains configuration for the Run command

func NewDefaultCLIConfig

func NewDefaultCLIConfig() *CLIConfig

NewDefaultCLIConfig creates a CLIConfig with default values

Jump to

Keyboard shortcuts

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