webhook

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

type Webhook interface {
	// SendWebhook sends the notification
	SendWebhook(ctx context.Context, data *WebhookRequest) error
	// SetBaseURL sets the baseURL in the object
	SetBaseURL(val string)
}

Interface for webhook clients

func NewWebhook

func NewWebhook() Webhook

NewWebhook creates a new Webhook

type WebhookRequest

type WebhookRequest struct {
	OperationName string
	KeyId         string
	Vault         string
	StateId       string
	Requestor     string
	Note          string
}

Jump to

Keyboard shortcuts

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