slack_webhook

package
v0.95.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackWebhookArgs

type SlackWebhookArgs struct {
	WebhookUrl string       `json:"webhook_url"`
	Incident   api.Incident `json:"incident"`
}

func (SlackWebhookArgs) InsertOpts

func (SlackWebhookArgs) InsertOpts() river.InsertOpts

func (SlackWebhookArgs) Kind

func (SlackWebhookArgs) Kind() string

type SlackWebhookWorker

type SlackWebhookWorker struct {
	// An embedded WorkerDefaults sets up default methods to fulfill the rest of
	// the Worker interface:
	river.WorkerDefaults[SlackWebhookArgs]
	// contains filtered or unexported fields
}

func NewSlackWebhookWorker

func NewSlackWebhookWorker(logger *zap.Logger, httpClient *http.Client) *SlackWebhookWorker

func (*SlackWebhookWorker) NextRetry

func (w *SlackWebhookWorker) NextRetry(job *river.Job[SlackWebhookArgs]) time.Time

NextRetry performs exponential backoff with a maximum of 120 seconds.

func (*SlackWebhookWorker) Timeout

func (*SlackWebhookWorker) Work

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL