slack

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log = logrus.New()
)

Functions

func ConfigureLogger

func ConfigureLogger(level logrus.Level, prod bool)

ConfigureLogger toggles debugging and adds full timestamps in production mode

func GenerateErrorMessage

func GenerateErrorMessage(errs []error, service string) []byte

func GenerateResolvedNotification

func GenerateResolvedNotification(service string) []byte

func InitSlackBot

func InitSlackBot(w string)

func IsInitialized

func IsInitialized() bool

func Send

func Send(message []byte)

Types

type Message

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

Jump to

Keyboard shortcuts

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