gchat

package module
v0.0.0-...-824613c Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 7 Imported by: 2

README

gchat

Go Reference License

Wrapper/Client to post text to Google Chat via webhook

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

type WebhookClient struct {
	Endpoint string
	Client   *http.Client
}

func (*WebhookClient) Post

type WebhookPayload

type WebhookPayload struct {
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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