webhook

package
v0.0.0-...-8cc68c2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(next http.Handler) http.Handler

Types

type Webhook

type Webhook struct {
	// contains filtered or unexported fields
}

func NewWebhook

func NewWebhook(provider *provider.Provider) (*Webhook, error)

func (*Webhook) AdjustEndpoints

func (h *Webhook) AdjustEndpoints(w http.ResponseWriter, r *http.Request)

POST to /adjustendpoints IIUC we can just return the same list here

func (*Webhook) ApplyChanges

func (h *Webhook) ApplyChanges(w http.ResponseWriter, r *http.Request)

POST to /records

func (*Webhook) Negotiate

func (h *Webhook) Negotiate(w http.ResponseWriter, r *http.Request)

return domain filter

func (*Webhook) Records

func (h *Webhook) Records(w http.ResponseWriter, r *http.Request)

GET to /records return all records matching the domain filters

Jump to

Keyboard shortcuts

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