webhook

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UNNAMED_WEBHOOK_ID string = "unnamed"
View Source
const (
	WEBHOOK_ID_PARAM = "webhookId"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookEvent

type WebhookEvent struct {
	Id      string                 `json:"id"`
	Payload map[string]interface{} `json:"payload"`
}

func BuildEvent

func BuildEvent(c *gin.Context, payload gjson.Result) (WebhookEvent, error)

func (WebhookEvent) AsByte

func (e WebhookEvent) AsByte() ([]byte, error)

func (WebhookEvent) AsMap

func (e WebhookEvent) AsMap() (map[string]interface{}, error)

func (WebhookEvent) PayloadAsByte

func (e WebhookEvent) PayloadAsByte() ([]byte, error)

func (WebhookEvent) Protocol

func (e WebhookEvent) Protocol() string

func (WebhookEvent) Scan added in v0.5.0

func (e WebhookEvent) Scan(input interface{}) error

func (WebhookEvent) Schema

func (e WebhookEvent) Schema() *string

func (WebhookEvent) Value added in v0.5.0

func (e WebhookEvent) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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