line

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotAdaptor

type BotAdaptor struct {
	botplug.BaseConfig
	ChannelSecret    string
	ChannelToken     string
	NotificationMode string
	Endpoint         string
	GroupIDs         []string
	// contains filtered or unexported fields
}

func New

func New(logger *logrus.Logger, endpoint, channelSecret, channelToken, groupIDsStr, notificationMode string) (*BotAdaptor, error)

func (*BotAdaptor) NewHandler

func (ba *BotAdaptor) NewHandler() (*httphandler.WebhookHandler, error)

call Bot Plugin interface

func (*BotAdaptor) SendTextMessageToChannels

func (ba *BotAdaptor) SendTextMessageToChannels(text string) (err error)

SendTextMessage is pkg/botplug.BotSender interface's implementation

func (*BotAdaptor) WithPlugin

func (bot *BotAdaptor) WithPlugin(plugin botplug.BotPlugin) *BotAdaptor

Jump to

Keyboard shortcuts

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