slack

package
v0.0.0-...-fad4da6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSlackMessageAttachment

func CreateSlackMessageAttachment(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