lxWebhooks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Error = "error"
	Warn  = "warning"
	Info  = "info"
)

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, level string) ([]byte, error)

SendSmall, small card for Microsoft Teams

type Slack added in v0.6.0

type Slack struct {
	Client   *http.Client
	BaseUrl  string
	Path     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