webhook

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: AGPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 AuthUser

type AuthUser struct {
	ID                     string     `json:"id"`
	Username               string     `json:"username"`
	Active                 bool       `json:"active"`
	Name                   *string    `json:"name,omitempty"`
	Email                  *string    `json:"email,omitempty"`
	Avatar                 *string    `json:"avatar,omitempty"`
	Lastresetsentat        *time.Time `json:"lastresetsentat,omitempty"`
	Lastverificationsentat *time.Time `json:"lastverificationsentat,omitempty"`
	Created                time.Time  `json:"created"`
	Updated                time.Time  `json:"updated"`
}

func SanitizeUser

func SanitizeUser(user *sqlc.User) *AuthUser

type Payload

type Payload struct {
	Action     string    `json:"action"`
	Collection string    `json:"collection"`
	Record     any       `json:"record"`
	Auth       *AuthUser `json:"auth,omitempty"`
	Admin      *AuthUser `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