Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandLineConfig ¶
type CommandLineConfig struct {
Config
// contains filtered or unexported fields
}
CommandLineConfig implements CommandLineConfigurator interface
func NewCommandLineConfig ¶
func NewCommandLineConfig(sourceFlag, outputFlag string) *CommandLineConfig
func (*CommandLineConfig) Init ¶
func (c *CommandLineConfig) Init(conf interface{}) error
func (*CommandLineConfig) SetCommandLineFlags ¶
func (c *CommandLineConfig) SetCommandLineFlags(flagSet *flag.FlagSet)
type CommandLineConfigurator ¶
type CommandLineConfigurator interface {
Configurator
SetCommandLineFlags(*flag.FlagSet)
}
type Config ¶
type Config struct {
// source of config, must be a filename or http URL
SourceOfConfig string `json:"-" xml:"-" cli:"config-source" usage:"source of config, filename or http URL"`
// output of config, exit process if non-empty
OutputOfConfig string `json:"-" xml:"-" cli:"config-output" usage:"output of config, exit process if non-empty"`
}
Config implements Configurator interface
type Configurator ¶
type Configurator interface {
Init(conf interface{}) error
}
Click to show internal directories.
Click to hide internal directories.