Documentation ¶
Index ¶
- type Body
- type Command
- type HTTP
- type JD
- type JSON
- type KV
- type Option
- func CommandArgs(args ...string) Option
- func CommandEnv(key, val string) Option
- func CommandName(cmd string) Option
- func CommandRetry(n int) Option
- func CommandStdoutDiscard(m bool) Option
- func CommandTimeout(d time.Duration) Option
- func Concurrent(c int) Option
- func Crontab(plan string) Option
- func Guarantee(g bool) Option
- func Metadata(key string, val interface{}) Option
- func Name(n string) Option
- func RepeatInterval(d time.Duration) Option
- func RepeatTimes(n int) Option
- func Timeout(d time.Duration) Option
- type Order
- type Repeat
- type Request
- type Shell
- type Text
- type XML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { Text *Text `yaml:"text"` JSON *JSON `yaml:"json"` XML *XML `yaml:"xml"` Form *url.Values `yaml:"form"` }
Body struct
type Command ¶
type Command struct { Shell *Shell `yaml:"shell,omitempty"` HTTP *HTTP `yaml:"http,omitempty"` Stdout bool `yaml:"stdout"` Retry int `yaml:"retry"` Timeout time.Duration `yaml:"timeout"` }
Command struct
type JD ¶
type JD struct { Name string `yaml:"name"` Metadata map[string]interface{} `yaml:"metadata,omitempty"` Command Command `yaml:"command"` Guarantee bool `yaml:"guarantee"` Crontab string `yaml:"crontab"` Repeat Repeat `yaml:"repeat"` Concurrent int `yaml:"concurrent"` Timeout time.Duration `yaml:"timeout"` Report bool `yaml:"report"` Order Order `yaml:"order"` }
JD struct config for job
type Order ¶
type Order struct { Precondition []string `yaml:"precondition"` Weight int `yaml:"weight"` Wait bool `yaml:"wait"` }
Order struct
type Request ¶
type Request struct { Method string `yaml:"method"` URL string `yaml:"url"` Headers map[string]string `yaml:"headers"` Queries map[string]string `yaml:"queries"` Body *Body `yaml:"body"` }
Request struct
Click to show internal directories.
Click to hide internal directories.