bslack

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 17 Imported by: 3

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 added in v1.12.0

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

Types

type BLegacy added in v1.12.0

type BLegacy struct {
	*Bslack
}

func (*BLegacy) Connect added in v1.12.0

func (b *BLegacy) Connect() error

type Bslack added in v0.7.0

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

func (*Bslack) Command added in v0.7.0

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

func (*Bslack) Connect added in v0.7.0

func (b *Bslack) Connect() error

func (*Bslack) Disconnect added in v0.9.3

func (b *Bslack) Disconnect() error

func (*Bslack) JoinChannel added in v0.7.0

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 added in v1.9.0

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

func (*Bslack) Send added in v0.7.0

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