Documentation ¶
Index ¶
- Constants
- type Config
- type Plugin
- func (p *Plugin) Available()
- func (p *Plugin) Collects() []interface{}
- func (p *Plugin) GetPublishers(name endure.Named, pub pubsub.PubSub)
- func (p *Plugin) Init(cfg config.Configurer, log logger.Logger, server server.Server) error
- func (p *Plugin) Middleware(next http.Handler) http.Handler
- func (p *Plugin) Name() string
- func (p *Plugin) Publish(m []byte) error
- func (p *Plugin) PublishAsync(m []byte)
- func (p *Plugin) RPC() interface{}
- func (p *Plugin) Reset() error
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
- func (p *Plugin) Workers() []process.State
Constants ¶
View Source
const (
PluginName string = "websockets"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // http path for the websocket Path string `mapstructure:"path"` // ["redis", "amqp", "memory"] PubSubs []string `mapstructure:"pubsubs"` Middleware []string `mapstructure:"middleware"` Pool *pool.Config `mapstructure:"pool"` }
Config represents configuration for the ws plugin
func (*Config) InitDefault ¶
func (c *Config) InitDefault()
InitDefault initialize default values for the ws config
type Plugin ¶
func (*Plugin) GetPublishers ¶
GetPublishers collects all pubsubs
func (*Plugin) PublishAsync ¶
Click to show internal directories.
Click to hide internal directories.