slack

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMessage

func SendMessage(url, message string) error

SendMessage sends webhook payload

Types

type BlockText

type BlockText struct {
	Type string `json:"type"`
	Text string `json:"text"`
}

BlockText is an actual text

type Message

type Message struct {
	Text   string         `json:"text"`
	Blocks []MessageBlock `json:"blocks"`
}

Message is a slack message

type MessageBlock

type MessageBlock struct {
	Type string    `json:"type"`
	Text BlockText `json:"text"`
}

MessageBlock is a slack message block

Jump to

Keyboard shortcuts

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