slackutil

package
v1.0.0-...-4f7f1ef Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorSlackUnexpectedResponseBody1   = errutil.NewFactory("unexpected slack response body: %v")
	ErrorSlackUnexpectedResponseStatus1 = errutil.NewFactory("unexpected slack response status: %v")
)

errors

Functions

This section is empty.

Types

type IncomingWebHook

type IncomingWebHook struct {
	WebHookURL string `json:"webhookurl,omitempty"`
	Channel    string `json:"channel,omitempty"`
	IconEmoji  string `json:"icon_emoji,omitempty"`
}

func (*IncomingWebHook) SendMessage

func (t *IncomingWebHook) SendMessage(message IncomingWebHookMessage) (err error)

type IncomingWebHookMessage

type IncomingWebHookMessage struct {
	Channel   string `json:"channel,omitempty"`
	Username  string `json:"username,omitempty"`
	Text      string `json:"text,omitempty"`
	IconEmoji string `json:"icon_emoji,omitempty"`
}

func (*IncomingWebHookMessage) FillEmptyFieldWithDefaultValue

func (t *IncomingWebHookMessage) FillEmptyFieldWithDefaultValue(config IncomingWebHook)

Jump to

Keyboard shortcuts

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