googlechat

package
v0.0.0-...-8f5fbd4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BASE_URL = "https://chat.googleapis.com"

Variables

This section is empty.

Functions

func SendAlert

func SendAlert(client *http.Client, params *QueryParameters, data *template.Data) error

Sends raw alertmanager payload to specified google chat webhook

Types

type GChatMessage

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

type QueryParameters

type QueryParameters struct {
	Space string
	Key   string
	Token string
}

Jump to

Keyboard shortcuts

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