webhooks

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

type Bus struct {
	Debug bool
	// contains filtered or unexported fields
}

func (*Bus) Initialize

func (webhooks *Bus) Initialize(conf config.WebhooksConfig)

func (*Bus) SendMessage

func (webhooks *Bus) SendMessage(cameraName string, eventType string, extra string)

type WebhookPayload

type WebhookPayload struct {
	CameraName string `json:"cameraName"`
	EventType  string `json:"eventType"`
	Extra      string `json:"extra"`
}

Jump to

Keyboard shortcuts

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