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"`
}
Click to show internal directories.
Click to hide internal directories.