webhook

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Post

func Post(requestPayload *WebhookRequestPayload) error

Post posts the message to webhook endpoint.

func PostAsync added in v0.24.4

func PostAsync(requestPayload *WebhookRequestPayload)

PostAsync posts the message to webhook endpoint asynchronously. It spawns a new goroutine to handle the request and does not wait for the response.

Types

type WebhookRequestPayload added in v0.25.0

type WebhookRequestPayload struct {
	// The target URL for the webhook request.
	URL string `json:"url"`
	// The type of activity that triggered this webhook.
	ActivityType string `json:"activityType"`
	// The resource name of the creator. Format: users/{user}
	Creator string `json:"creator"`
	// The memo that triggered this webhook (if applicable).
	Memo *v1pb.Memo `json:"memo"`
}

Jump to

Keyboard shortcuts

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