repository

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSlackTimeout = 5 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type FullSlackMessage

type FullSlackMessage struct {
	SlackMessage
	Username string `json:"username,omitempty"`
	Channel  string `json:"channel,omitempty"`
}

type SlackClient

type SlackClient struct {
	UserName string
	Channel  string
	TimeOut  time.Duration
	Url      string
}

func NewSlackClient

func NewSlackClient(username, channel, webhook string) SlackClient

func (SlackClient) SendSlackMessage

func (sc SlackClient) SendSlackMessage(s SlackMessage) error

type SlackMessage

type SlackMessage struct {
	IconEmoji string `json:"icon_emoji,omitempty"`
	Text      string `json:"text,omitempty"`
}

Jump to

Keyboard shortcuts

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