slack

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

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

func NewSlack

func NewSlack(cfg *SlackConfig) (*Slack, error)

func (*Slack) SendMsg

func (c *Slack) SendMsg(message *SlackMessage) (err error)

type SlackConfig

type SlackConfig struct {
	Token    string
	UserName string
}

func NewSlackConfig

func NewSlackConfig(slackToken, userName string) *SlackConfig

type SlackMessage

type SlackMessage struct {
	Channel string `json:"channel"`
	Text    string `json:"text"`
}

Jump to

Keyboard shortcuts

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