webhooks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CheckHost = core.CheckPublicHost

CheckHost refuses addresses deliveries could never reach. Tests replace it with WebhookClient, for local receivers.

View Source
var WebhookClient = core.PublicClient(15 * time.Second)

WebhookClient refuses anything but public addresses, checked on the resolved IP at connect time so DNS cannot sneak past it.

Functions

func PeriodicJobs

func PeriodicJobs() []*river.PeriodicJob

func Routes

func Routes(mux *http.ServeMux, d *core.Deps)

func Workers

func Workers(w *river.Workers, d *core.Deps)

Types

type DeliverArgs

type DeliverArgs struct {
	TenantID   pgtype.UUID     `json:"tenant_id"`
	EndpointID pgtype.UUID     `json:"endpoint_id"`
	Body       json.RawMessage `json:"body"`
	DeliveryID pgtype.UUID     `json:"delivery_id"` // the history row; not Valid on jobs queued before it existed
}

DeliverArgs sends one event to one webhook endpoint.

func (DeliverArgs) InsertOpts

func (DeliverArgs) InsertOpts() river.InsertOpts

func (DeliverArgs) Kind

func (DeliverArgs) Kind() string

type RetentionArgs

type RetentionArgs struct{}

RetentionArgs deletes delivery history past 30 days, daily.

func (RetentionArgs) InsertOpts

func (RetentionArgs) InsertOpts() river.InsertOpts

func (RetentionArgs) Kind

func (RetentionArgs) Kind() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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