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
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
Click to show internal directories.
Click to hide internal directories.