webhook

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_WEBHOOK_ID string = "f324467b-1213-46a1-b5c8-f173aa5d82e4"
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) Schema

func (e WebhookEvent) Schema() *string

Jump to

Keyboard shortcuts

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