nautilus.network.events.actionHandlers package

Submodules

nautilus.network.events.actionHandlers.createHandler module

nautilus.network.events.actionHandlers.createHandler.create_handler(Model, name=None, **kwds)[source]

This factory returns an action handler that creates a new instance of the specified model when a create action is recieved, assuming the action follows nautilus convetions.

Parameters:Model (nautilus.BaseModel) – The model to create when the action received.
Returns:function – The action handler for this model
Return type:action_type, payload

nautilus.network.events.actionHandlers.crudHandler module

nautilus.network.events.actionHandlers.crudHandler.crud_handler(Model, name=None, **kwds)[source]

This action handler factory reaturns an action handler that responds to actions with CRUD types (following nautilus conventions) and performs the necessary mutation on the model’s database.

Parameters:Model (nautilus.BaseModel) – The model to delete when the action received.
Returns:function – The action handler for this model
Return type:type, payload

nautilus.network.events.actionHandlers.deleteHandler module

nautilus.network.events.actionHandlers.deleteHandler.delete_handler(Model, name=None, **kwds)[source]

This factory returns an action handler that deletes a new instance of the specified model when a delete action is recieved, assuming the action follows nautilus convetions.

Parameters:Model (nautilus.BaseModel) – The model to delete when the action received.
Returns:function – The action handler for this model
Return type:type, payload

nautilus.network.events.actionHandlers.readHandler module

nautilus.network.events.actionHandlers.readHandler.read_handler(Model, name=None, **kwds)[source]

This factory returns an action handler that responds to read requests by resolving the payload as a graphql query against the internal schema.

Parameters:Model (nautilus.BaseModel) – The model to delete when the action received.
Returns:function – The action handler for this model
Return type:type, payload

nautilus.network.events.actionHandlers.rollCallHandler module

nautilus.network.events.actionHandlers.rollCallHandler.roll_call_handler(service, action_type, payload, props, **kwds)[source]

This action handler responds to the “roll call” emitted by the api gateway when it is brought up with the normal summary produced by the service.

nautilus.network.events.actionHandlers.updateHandler module

nautilus.network.events.actionHandlers.updateHandler.update_handler(Model, name=None, **kwds)[source]

This factory returns an action handler that updates a new instance of the specified model when a update action is recieved, assuming the action follows nautilus convetions.

Parameters:Model (nautilus.BaseModel) – The model to update when the action received.
Returns:function – The action handler for this model
Return type:type, payload

Module contents

nautilus.network.events.actionHandlers.noop_handler(action_type, payload, dispatcher=None)[source]