Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPHelper ¶
type HTTPHelper struct {
// contains filtered or unexported fields
}
HTTPHelper in charge of sending notification messages to remote endpoint
type SlackJob ¶
type SlackJob struct {
// contains filtered or unexported fields
}
SlackJob implements the job interface, which send notification to slack by slack incoming webhooks.
func (*SlackJob) MaxCurrency ¶
MaxCurrency is implementation of same method in Interface.
type WebhookJob ¶
type WebhookJob struct {
// contains filtered or unexported fields
}
WebhookJob implements the job interface, which send notification by http or https.
func (*WebhookJob) MaxCurrency ¶
func (wj *WebhookJob) MaxCurrency() uint
MaxCurrency is implementation of same method in Interface.
func (*WebhookJob) MaxFails ¶
func (wj *WebhookJob) MaxFails() (result uint)
MaxFails returns that how many times this job can fail, get this value from ctx.
func (*WebhookJob) Run ¶
func (wj *WebhookJob) Run(ctx job.Context, params job.Parameters) error
Run implements the interface in job/Interface
func (*WebhookJob) Validate ¶
func (wj *WebhookJob) Validate(params job.Parameters) error
Validate implements the interface in job/Interface
Click to show internal directories.
Click to hide internal directories.