wrapper

package
v0.0.0-...-0e217c4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 2 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 {
	App *slack.Client
	Bot *slack.Client
}

Slack is a wrapper around the Slack App and RTM APIs

func New

func New(appToken, botToken string) (*Slack, error)

New takes an app and bot token, verifies the connection and returns an initialised Slack struct

func (*Slack) OpenDialog

func (s *Slack) OpenDialog(triggerID string, dialog slack.Dialog) error

OpenDialog opens a Dialog inside Slack

type SlackWrapper

type SlackWrapper interface {
	OpenDialog(triggerID string, dialog slack.Dialog) error
}

SlackWrapper is a interface for Slack to enable test double injection

Jump to

Keyboard shortcuts

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