bslack

package
v0.0.0-...-c0abdc2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEventIgnored = errors.New("this event message should ignored")

ErrEventIgnored is for events that should be ignored

Functions

func New

func New(cfg *bridge.Config) bridge.Bridger

func NewLegacy

func NewLegacy(cfg *bridge.Config) bridge.Bridger

Types

type BLegacy

type BLegacy struct {
	*Bslack
}

func (*BLegacy) Connect

func (b *BLegacy) Connect() error

type Bslack

type Bslack struct {
	sync.RWMutex
	*bridge.Config
	// contains filtered or unexported fields
}

func (*Bslack) Command

func (b *Bslack) Command(cmd string) string

func (*Bslack) Connect

func (b *Bslack) Connect() error

func (*Bslack) Disconnect

func (b *Bslack) Disconnect() error

func (*Bslack) JoinChannel

func (b *Bslack) JoinChannel(channel config.ChannelInfo) error

JoinChannel only acts as a verification method that checks whether Matterbridge's Slack integration is already member of the channel. This is because Slack does not allow apps or bots to join channels themselves and they need to be invited manually by a user.

func (*Bslack) Reload

func (b *Bslack) Reload(cfg *bridge.Config) (string, error)

func (*Bslack) Send

func (b *Bslack) Send(msg config.Message) (string, error)

Jump to

Keyboard shortcuts

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