slackmsg

package
v0.0.0-...-f30bf98 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package slackmsg implements the Messenger handler of Slack for Telepathy framework. Needed configs:

  • CLIENT_ID: The client ID of slack app
  • CLIENT_SECRET: The client secret of slack app
  • SIGNING_SECRET: Used to verify the integrity of requests from Slack. It can be found in Slack app management panel

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Messenger

type Messenger struct {
	SigningSecret []byte
	ClientID      string
	ClientSecret  string
	// contains filtered or unexported fields
}

Messenger defines the plugin structure

func (*Messenger) AttachOutMsgChannel

func (m *Messenger) AttachOutMsgChannel(ch <-chan telepathy.OutboundMessage)

AttachOutMsgChannel implements telepathy.PluginMessenger

func (*Messenger) DBRequestChannel

func (m *Messenger) DBRequestChannel() <-chan telepathy.DatabaseRequest

DBRequestChannel implements PluginDatabaseUser

func (*Messenger) ID

func (m *Messenger) ID() string

ID implements telepathy.Plugin

func (*Messenger) InMsgChannel

func (m *Messenger) InMsgChannel() <-chan telepathy.InboundMessage

InMsgChannel implements telepathy.PluginMessenger

func (*Messenger) SetLogger

func (m *Messenger) SetLogger(logger *logrus.Entry)

SetLogger implements telepathy.Plugin

func (*Messenger) SetWebhookURL

func (m *Messenger) SetWebhookURL(map[string]*url.URL)

SetWebhookURL implements telepathy.PluginWebhookHandler

func (*Messenger) Start

func (m *Messenger) Start()

Start implements telepathy.Plugin

func (*Messenger) Stop

func (m *Messenger) Stop()

Stop implements telepathy.Plugin

func (*Messenger) Webhook

func (m *Messenger) Webhook() map[string]telepathy.HTTPHandler

Webhook implements telepathy.PluginWebhookHandler

Jump to

Keyboard shortcuts

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