anchoreengine

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct{}

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(req *http.Request) (*cloudevents.Event, error)

type Webhook

type Webhook struct {
	Data WebhookData `json:"data"`
}

type WebhookData

type WebhookData struct {
	NotificationType    string                     `json:"notification_type"`
	NotificationPayload WebhookNotificationPayload `json:"notification_payload"`
}

type WebhookNotificationPayload

type WebhookNotificationPayload struct {
	NotificationID  string `json:"notificationId"`
	SubscriptionKey string `json:"subscription_key"`
}

Jump to

Keyboard shortcuts

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