webhook

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpEventPattern = `{"event":"%s","name":"%s","timestamp":"%s"}`
	HttpEventVerb    = "POST"

	HttpRequestCreationErrorMessage = "error creating http request: %s"
	HttpRequestSendingErrorMessage  = "error sending http request: %s"

	RequiredConfigFieldsMissingMessage = "some mandatory config field is missing on webhooks integration"
)

Variables

This section is empty.

Functions

func SendStartDeviceEvent

func SendStartDeviceEvent(ctx *v1alpha1.Context) (httpResponse *http.Response, err error)

SendStartDeviceEvent send a request to TODO

func SendStopDeviceEvent

func SendStopDeviceEvent(ctx *v1alpha1.Context) (httpResponse *http.Response, err error)

SendStopDeviceEvent send a request to TODO

Types

This section is empty.

Jump to

Keyboard shortcuts

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