slack

package
v0.0.0-...-63da0a4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Color      string  `json:"color"`
	Pretext    string  `json:"pretext,omitempty"`
	AuthorName string  `json:"author_name,omitempty"`
	AuthorIcon string  `json:"author_icon,omitempty"`
	Title      string  `json:"title"`
	TitleLink  string  `json:"title_link,omitempty"`
	Text       string  `json:"text"`
	Fields     []Field `json:"fields"`

	Fallback string `json:"fallback"`
}

func ErrorMessage

func ErrorMessage(msg string) Attachment

func (Attachment) Send

func (a Attachment) Send(hookURL string) error

type Field

type Field struct {
	Title string `json:"title"`
	Value string `json:"value"`
	Short bool   `json:"short"`
}

Jump to

Keyboard shortcuts

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