broadcast

package module
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 8 Imported by: 1

README

broadcast

RRv2 Broadcast plugin

Documentation

Index

Constants

View Source
const (
	PluginName string = "broadcast"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Data map[string]any `mapstructure:"broadcast"`
}

Config ...

type Plugin

type Plugin struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Plugin) CollectPublishers

func (p *Plugin) CollectPublishers(name endure.Named, constructor pubsub.Constructor)

CollectPublishers collect all plugins who implement pubsub.Publisher interface

func (*Plugin) Collects

func (p *Plugin) Collects() []any

func (*Plugin) GetDriver

func (p *Plugin) GetDriver(key string) (pubsub.SubReader, error)

func (*Plugin) Init

func (p *Plugin) Init(cfg config.Configurer, log *zap.Logger) error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Publish

func (p *Plugin) Publish(m *pubsub.Message) error

Publish is an entry point to the websocket PUBSUB

func (*Plugin) PublishAsync

func (p *Plugin) PublishAsync(m *pubsub.Message)

func (*Plugin) RPC

func (p *Plugin) RPC() any

func (*Plugin) Serve

func (p *Plugin) Serve() chan error

func (*Plugin) Stop

func (p *Plugin) Stop() error

Jump to

Keyboard shortcuts

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