Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codegen ¶
type ConfigCommand ¶
type ConfigCommand struct {
Init ConfigInit `cmd:"" help:"Generate a configuration template"`
}
ConfigCommand groups config-related subcommands.
type ConfigInit ¶
type ConfigInit struct {
Command string `arg:"" name:"command" help:"Command to generate config for" enum:"server,proxy"`
Format string `help:"Output format" enum:"json,yaml,toml" default:"json"`
Output string `help:"Destination file path (defaults to current directory)"`
Force bool `help:"Overwrite if the file already exists"`
}
ConfigInit scaffolds a configuration file for a specific command.
func (*ConfigInit) Run ¶
func (c *ConfigInit) Run() error
Run generates a configuration template dynamically via reflection of the command structs and tags.
type Proxy ¶
type Proxy struct {
ListenAddr string `help:"Proxy listen address" default:":3241" env:"VIIPER_PROXY_ADDR"`
UpstreamAddr string `help:"Upstream USB-IP server address" required:"" env:"VIIPER_PROXY_UPSTREAM"`
ConnectionTimeout time.Duration `help:"Connection timeout" default:"30s" env:"VIIPER_PROXY_TIMEOUT"`
}
type Server ¶
type Server struct {
UsbServerConfig usb.ServerConfig `embed:"" prefix:"usb."`
ApiServerConfig api.ServerConfig `embed:"" prefix:"api."`
ConnectionTimeout time.Duration `help:"ConnectionTimeout operation timeout" default:"30s" env:"VIIPER_CONNECTION_TIMEOUT"`
}
Click to show internal directories.
Click to hide internal directories.