bslack

package
v0.0.0-...-7f741ec Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChannelREAuto = regexp.MustCompile(`<#[A-Z0-9]+\|>`)
)
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

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