Documentation ¶
Index ¶
- Constants
- type Config
- type Plugin
- func (p *Plugin) CollectPublishers(name endure.Named, constructor pubsub.Constructor)
- func (p *Plugin) Collects() []any
- func (p *Plugin) GetDriver(key string) (pubsub.SubReader, error)
- func (p *Plugin) Init(cfg config.Configurer, log *zap.Logger) error
- func (p *Plugin) Name() string
- func (p *Plugin) Publish(m *pubsub.Message) error
- func (p *Plugin) PublishAsync(m *pubsub.Message)
- func (p *Plugin) RPC() any
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
Constants ¶
View Source
const (
PluginName string = "broadcast"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
func (*Plugin) CollectPublishers ¶
func (p *Plugin) CollectPublishers(name endure.Named, constructor pubsub.Constructor)
CollectPublishers collect all plugins who implement pubsub.Publisher interface
func (*Plugin) PublishAsync ¶
Click to show internal directories.
Click to hide internal directories.