vaping.plugins.zeromq

Classes


ZeroMQ

ZeroMQ(vaping.plugins.EmitBase)

plugin to emit json encoded messages via zeromq

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