webhook

package
v2.4.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller interface {
	Call(eventID, sessionID, webhookID, webhookURL string) error
}

Caller - Interface for calling webhooks

type Webhook

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

Webhook - used to broadcast push notifications

func NewWebhook

func NewWebhook(serverURL string) *Webhook

NewWebhook - returns a new Webhook instance

func (*Webhook) Call

func (a *Webhook) Call(eventID, sessionID, webhookID, webhookURL string) error

Call - call webhook to notify about a new event

Jump to

Keyboard shortcuts

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