slack

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: GPL-3.0 Imports: 4 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 {
	Title    string `json:"title"`
	Fallback string `json:"fallback"`
	Text     string `json:"text"`
}

type Message

type Message struct {
	Text        string        `json:"text"`
	Markdown    bool          `json:"mrkdwn"`
	Attachments []*Attachment `json:"attachments"`
}

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

func (*Sender) SendMessage

func (s *Sender) SendMessage(msg *Message) error

type SenderInterface

type SenderInterface interface {
	SendMessage(*Message) error
}

func NewSlackSender

func NewSlackSender(webHookUrl, notifierName string, httpClient *http.Client) SenderInterface

Jump to

Keyboard shortcuts

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