ws

package
v0.0.0-...-b400eb5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannels

func GetChannels(port uint, db *gorm.DB, cleanup func(channels.Publisher)) (<-chan *WebsocketChannel, func() error)

Types

type WebsocketChannel

type WebsocketChannel struct {
	Filter string
	// contains filtered or unexported fields
}

func (*WebsocketChannel) AddConsumer

func (consumerChannel *WebsocketChannel) AddConsumer(consumer channels.Consumer) bool

func (*WebsocketChannel) Publish

func (pub *WebsocketChannel) Publish(payload string) bool

func (*WebsocketChannel) Publisher

func (consumerChannel *WebsocketChannel) Publisher() channels.Publisher

func (*WebsocketChannel) PurgeRejected

func (consumerChannel *WebsocketChannel) PurgeRejected() int

func (*WebsocketChannel) ReturnAllUnacked

func (consumerChannel *WebsocketChannel) ReturnAllUnacked() int

func (*WebsocketChannel) StartConsuming

func (consumerChannel *WebsocketChannel) StartConsuming() bool

func (*WebsocketChannel) StopConsuming

func (consumerChannel *WebsocketChannel) StopConsuming() bool

Jump to

Keyboard shortcuts

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