webhook

package
v0.15.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindHooks

func BindHooks(hooks *hook.Hooks, queries *sqlc.Queries)

Types

type Payload

type Payload struct {
	Action     string     `json:"action"`
	Collection string     `json:"collection"`
	Record     any        `json:"record"`
	Auth       *sqlc.User `json:"auth,omitempty"`
	Admin      *sqlc.User `json:"admin,omitempty"`
}

type Webhook

type Webhook struct {
	ID          string `db:"id"          json:"id"`
	Name        string `db:"name"        json:"name"`
	Collection  string `db:"collection"  json:"collection"`
	Destination string `db:"destination" json:"destination"`
}

Jump to

Keyboard shortcuts

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