slack

package
v0.0.0-...-c5ab296 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MPL-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

Bot - main slack bot container

func (*Bot) Configure

func (b *Bot) Configure(approvalsRespCh chan *bot.ApprovalResponse, botMessagesChannel chan *bot.BotMessage) bool

func (*Bot) ReplyToApproval

func (b *Bot) ReplyToApproval(approval *types.Approval) error

func (*Bot) RequestApproval

func (b *Bot) RequestApproval(req *types.Approval) error

Request - request approval

func (*Bot) Respond

func (b *Bot) Respond(text string, channel string)

func (*Bot) Start

func (b *Bot) Start(ctx context.Context) error

Start - start bot

type SlackImplementer

type SlackImplementer interface {
	PostMessage(channelID string, options ...slack.MsgOption) (string, string, error)
}

SlackImplementer - implementes slack HTTP functionality, used to send messages with attachments

Jump to

Keyboard shortcuts

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