vaping.plugins.zeromq
Classes
ZeroMQ
ZeroMQ(vaping.plugins.EmitBase)
plugin to emit json encoded messages via zeromq
Class Attributes
- ConfigSchema (
ZeroMQSchema Class
): Base plugin config schema
Instanced Attributes
These attributes / properties will be available on instances of the class
- ctx (
zmq Context
) - sock (
zmq socket
)
Methods
__init__
def __init__(self, config, ctx)
Arguments
- config (
dict
) - ctx: vaping context
emit
def emit(self, message)
accept message to emit
init
def init(self)
called after the plugin is initialized, plugin may define this for any other initialization code
on_start
def on_start(self)
called when the daemon is starting
on_stop
def on_stop(self)
called when the daemon is stopping
ZeroMQSchema
ZeroMQSchema(vaping.plugins.PluginConfigSchema)
Configuration Schema for PluginBase
When creating new configuration schemas for extended plugins extend this.
Class Attributes
- bind (
Str Instance
): - connect (
Str Instance
):