slackconnection

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	IncomingMessageChannel chan SlackMessage
	OutgoingMessageChannel chan types.OutgoingSlackMessage
	// contains filtered or unexported fields
}

func NewBot

func NewBot(appToken string, botToken string, logger interfaces.LoggerInterface) (*Bot, error)

func (*Bot) Start

func (b *Bot) Start(wg *sync.WaitGroup, ctx context.Context)

type SlackMessage

type SlackMessage struct {
	User    string
	Text    string
	Channel string
}

Jump to

Keyboard shortcuts

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