Documentation ¶
Index ¶
- Variables
- type Option
- type Options
- func (o Options) Bool(name string) bool
- func (o Options) Int(name string) int
- func (o Options) IntSlice(name string) []int
- func (o Options) MapString(name string) map[string]string
- func (o Options) String(name string) string
- func (o Options) StringSlice(name string) []string
- func (o Options) Value(name string) interface{}
- type Runner
- func (r *Runner) Debugf(format string, args ...interface{})
- func (r *Runner) Logf(format string, args ...interface{})
- func (r *Runner) OptionBool(name string, required bool, doc string, defaultValue bool)
- func (r *Runner) OptionInt(name string, required bool, doc string, defaultValue int)
- func (r *Runner) OptionIntSlice(name string, required bool, doc string, defaultValue []int)
- func (r *Runner) OptionMapString(name string, required bool, doc string, defaultValue map[string]string)
- func (r *Runner) OptionString(name string, required bool, doc string, defaultValue string)
- func (r *Runner) OptionStringSlice(name string, required bool, doc string, defaultValue []string)
- func (t *Runner) Run(maxConcurrent int)
- func (t *Runner) Send(data map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Envs map[string]string
View Source
var Logger = log.New(os.Stderr, "", 0)
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Options ¶
func (Options) StringSlice ¶
type Runner ¶
type Runner struct { Opt Options Description string ShortDescription string // contains filtered or unexported fields }
func (*Runner) OptionBool ¶
func (*Runner) OptionIntSlice ¶
func (*Runner) OptionMapString ¶
func (*Runner) OptionString ¶
func (*Runner) OptionStringSlice ¶
Click to show internal directories.
Click to hide internal directories.