webhookworker

package
v0.0.0-...-3e1c22f Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package webhookworker webhook's delivery worker utilizes GoogleCloud PubSub to poll and delivery events as they happen to clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeliverPayload

func DeliverPayload(ctx context.Context, msg *pubsub.Message) error

DeliverPayload delivers webhook.

Types

type WebhookEvent

type WebhookEvent struct {
	PayloadURL    string `json:"payload_url"`
	PayloadData   string `json:"payload_data"` // base64 encoded payload
	WebhookSecret string `json:"webhook_secret"`
}

WebhookEvent represents webhook event.

Jump to

Keyboard shortcuts

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