lxWebhooks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedDark     = "#ED1B3E"
	MagentaDark = "#F236B8"
	YellowDark  = "#FBC940"
	GreenDark   = "#88BC2B"
)
View Source
const (
	Error = "danger"
	Warn  = "warning"
	Info  = "good"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IWebhook added in v0.4.2

type IWebhook interface {
	SendSmall(title, msg, color string) ([]byte, error)
}

type MsTeams

type MsTeams struct {
	Client  *http.Client
	BaseUrl string
	Path    string
}

func (*MsTeams) SendSmall

func (api *MsTeams) SendSmall(title, msg, color string) ([]byte, error)

SendSmall, small card for Microsoft Teams

type Slack added in v0.6.0

type Slack struct {
	Client   *http.Client
	Url      string
	Username string
	Icon     string
}

func (*Slack) SendSmall added in v0.6.0

func (api *Slack) SendSmall(title, msg, level string) ([]byte, error)

SendSmall, send message to slack

Directories

Path Synopsis
Package lxWebhooksMocks is a generated GoMock package.
Package lxWebhooksMocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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