Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TwitterPostArgs ¶
type TwitterPostArgs struct { Incident api.Incident `json:"incident"` WebhookUrl string `json:"webhook_url"` }
func (TwitterPostArgs) InsertOpts ¶
func (TwitterPostArgs) InsertOpts() river.InsertOpts
func (TwitterPostArgs) Kind ¶
func (TwitterPostArgs) Kind() string
type TwitterPostWorker ¶
type TwitterPostWorker struct { // An embedded WorkerDefaults sets up default methods to fulfill the rest of // the Worker interface: river.WorkerDefaults[TwitterPostArgs] // contains filtered or unexported fields }
func NewTwitterPostWorker ¶
func (*TwitterPostWorker) NextRetry ¶
func (w *TwitterPostWorker) NextRetry(job *river.Job[TwitterPostArgs]) time.Time
NextRetry performs exponential backoff with a maximum of 120 seconds.
func (*TwitterPostWorker) Timeout ¶
func (w *TwitterPostWorker) Timeout(job *river.Job[TwitterPostArgs]) time.Duration
func (*TwitterPostWorker) Work ¶
func (w *TwitterPostWorker) Work(ctx context.Context, job *river.Job[TwitterPostArgs]) error
Click to show internal directories.
Click to hide internal directories.