reporter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BotName         = "Kafka opbects operator"
	MsgColorOK      = "#00CC00"
	MsgColorWarning = "#F5EC1E"
	MsgColorError   = "#EE0000"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Messanger

type Messanger struct {
	// contains filtered or unexported fields
}

func New

func New(token string, options ...Options) (*Messanger, error)

func (*Messanger) Message

func (r *Messanger) Message(
	messages []string,
	title, color string)

type Options

type Options func(*Messanger) error

func HTTPClient

func HTTPClient(hc *http.Client) Options

HTTPClient will add http client for Slack messanger

func SlackChannel

func SlackChannel(sl string) Options

SlackChannel will add slack channel name

Jump to

Keyboard shortcuts

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