webhook

package
v1.46.29 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 5 Imported by: 1 module, 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 Query

Types

type Events

type Events map[string]bool

type Webhook

type Webhook struct {
	mixin.Model[Webhook]

	// Name
	Name string `json:"name"`

	// Endpoint webhook should deliver events to.
	Url string `json:"url"`

	// Whether to use Live or Test data.
	Live bool `json:"live"`

	// Whether to send all events or selectively using Events.
	All bool `json:"all"`

	// Random token to check against
	AccessToken string `json:"accessToken"`

	// Events to selectively send.
	Events  Events `json:"events" datastore:"-" orm:"default:{}"`
	Events_ string `json:"-" datastore:",noindex"`

	// Whether this webhook is enabled or not.
	Enabled bool `json:"enabled"`
}

func Fake

func Fake(db *datastore.Datastore) *Webhook

func New

func New(db *datastore.Datastore) *Webhook

func (*Webhook) Load

func (s *Webhook) Load(ps []datastore.Property) (err error)

func (*Webhook) Save

func (s *Webhook) Save() (ps []datastore.Property, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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