slack

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Webhook  string `json:"webhook,omitempty"`
	Username string `json:"username,omitempty"`
	Channel  string `json:"channel,omitempty"`
	Verbose  bool   `json:"verbose,omitempty"`
}

type Notifier

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

Notifier is a slack notifier.

func New

func New(cfg *Config) *Notifier

func (*Notifier) Notify

func (sn *Notifier) Notify(r *notifier.Report)

Notify send a slack notification with the provided report.

Jump to

Keyboard shortcuts

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