chat

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBroadcasterAlreadyStarted = errors.New("broadcaster already started")
View Source
var ErrBroadcasterStopped = errors.New("broadcaster stopped")

Functions

This section is empty.

Types

type Broadcaster

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

func NewBroadcaster

func NewBroadcaster(rabbitBroker *rabbitmq.Broker, redisBroker *redis.Broker) *Broadcaster

func (*Broadcaster) Start

func (b *Broadcaster) Start(ctx context.Context) error

type Subscriber

type Subscriber interface {
	Subscribe(ctx context.Context, roomId string) <-chan *model.Message
}

Jump to

Keyboard shortcuts

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