slack

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ONGOING_COLOR = "#FF3A4C"
View Source
const ONGOING_URL = "https://slack.com/api/chat.postMessage"
View Source
const RESOLVED_COLOR = "#00EA6B"
View Source
const SLACK_TEMPLATE_NEW_MSG = `` /* 323-byte string literal not displayed */
View Source
const SLACK_TEMPLATE_UPDATE = `` /* 337-byte string literal not displayed */
View Source
const UPDATE_URL = "https://slack.com/api/chat.update"

Variables

This section is empty.

Functions

func SendSlackMessage

func SendSlackMessage(subject string, content string, slackChannel string, resolved bool, ts string) (string, error)

Types

type SlackResponse

type SlackResponse struct {
	Channel string `json:"channel"`
	Ok      bool   `json:"ok"`
	Ts      string `json:"ts"`
	Warning string `json:"warning"`
	Error   string `json:"error"`
}

Jump to

Keyboard shortcuts

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