channels

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowList

type AllowList struct {
	AllowFrom []string
}

func (AllowList) Allowed

func (a AllowList) Allowed(senderID string) bool

type Channel

type Channel interface {
	Name() string
	Start(ctx context.Context) error
	Stop() error
	Send(ctx context.Context, msg bus.OutboundMessage) error
	IsRunning() bool
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(b *bus.Bus) *Manager

func (*Manager) Add

func (m *Manager) Add(ch Channel)

func (*Manager) Require

func (m *Manager) Require(name string) (Channel, error)

func (*Manager) StartAll

func (m *Manager) StartAll(ctx context.Context) error

func (*Manager) Status

func (m *Manager) Status() map[string]map[string]any

func (*Manager) StopAll

func (m *Manager) StopAll() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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