Documentation ¶
Overview ¶
gchat is a simple client for posting text messages to Google Chat via webhook
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoEndpoint = errors.New("gchat: no endpoint provided")
Functions ¶
This section is empty.
Types ¶
type WebhookClient ¶
func (*WebhookClient) Post ¶
func (c *WebhookClient) Post(ctx context.Context, p WebhookPayload) error
type WebhookPayload ¶
type WebhookPayload struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.