slack

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExceptionChannel

func ExceptionChannel() string

ExceptionChannel defined default exception channel

func SendMessage

func SendMessage(s Message)

SendMessage send slack message

func Setup

func Setup()

Setup init slack config

Types

type Configure added in v0.1.1

type Configure struct {
	URL string `env:"SLACK_URL" envDefault:"https://hooks.slack.com/services/zzz/xxx/yyy"`
}

Configure config for slack

var Config Configure

Config global defined slack config

type Message

type Message struct {
	Text     string `json:"text"`
	Username string `json:"username"`
	Channel  string `json:"channel"`
}

Message defined message for slack

Jump to

Keyboard shortcuts

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