webhook

package
v0.100.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 8 Imported by: 0

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

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

type WebhookRequestPayload struct {
	Memo         *v1pb.Memo `json:"memo"`
	URL          string     `json:"url"`
	ActivityType string     `json:"activityType"`
	Creator      string     `json:"creator"`
}

Jump to

Keyboard shortcuts

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