slack

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisplayName      = "Slack"
	HandlerKey       = "slack"
	MessageDirection = "in"
	MessageBodyType  = models.URLEncodedJSONPayloadOrJSON
)

Variables

This section is empty.

Functions

func BuildInboundMessageBytes

func BuildInboundMessageBytes(ctx *fasthttp.RequestCtx) []byte

func NewHandler

func NewHandler() handlers.Handler

func Normalize

func Normalize(config config.Configuration, bytes []byte) (cc.Message, error)

Types

type SlackWebhookMessage

type SlackWebhookMessage struct {
	Username  string `json:"username"`
	IconEmoji string `json:"icon_emoji"`
	IconURL   string `json:"icon_url"`
	Text      string `json:"text"`
}

func SlackWebhookMessageFromBytes

func SlackWebhookMessageFromBytes(bytes []byte) (SlackWebhookMessage, error)

Jump to

Keyboard shortcuts

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