hnsqplugin

package
v1.1.44 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NsqPlugin

type NsqPlugin struct {
	core.PluginConf

	ServerAddr string
}

type Plugin

type Plugin struct {
	core.BasePlugin
	// contains filtered or unexported fields
}

func New

func New() *Plugin

func (*Plugin) AddReceiver

func (this *Plugin) AddReceiver(receiver string, handler nsq.Handler) *herrors.Error

func (*Plugin) Capability

func (this *Plugin) Capability() htypes.Any

func (*Plugin) Close

func (this *Plugin) Close()

func (*Plugin) Config

func (this *Plugin) Config() core.IEntityConf

func (*Plugin) DelReceiver

func (this *Plugin) DelReceiver(receiver string)

func (*Plugin) EntityStub

func (this *Plugin) EntityStub() *core.EntityStub

func (*Plugin) Notify

func (this *Plugin) Notify(receiver string, content interface{}) *herrors.Error

func (*Plugin) Open

func (this *Plugin) Open(s core.IServer, ins core.IPlugin) *herrors.Error

Jump to

Keyboard shortcuts

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