slack

package
v0.0.0-...-65a38df Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSlackMessagAttachment

func CreateSlackMessagAttachment(snsEvent events.SNSEvent) string

CreateSlackMessagAttachment is a function to create slack message

Types

type MessageAttachments

type MessageAttachments struct {
	Color    string                 `json:"color,omitempty"`
	Pretext  string                 `json:"pretext,omitempty"`
	Username string                 `json:"username,omitempty"`
	Icon     string                 `json:"icon_emoji,omitempty"`
	Fields   []slackAttachmentField `json:"fields,omitempty"`
}

MessageAttachments is the Slack message stracture

Jump to

Keyboard shortcuts

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