pinchpi_extension behaviour (pinchpi v0.1.0)
Summary
Callbacks
-callback dispatch(binary(), [term()], pinchpi_context:ctx()) -> {ok, term(), pinchpi_context:ctx()} | error.
-callback functions() -> [binary()].
-callback name() -> binary().
-callback register(pinchpi_context:ctx()) -> pinchpi_context:ctx().
Functions
-spec dispatch([module()], binary(), [term()], pinchpi_context:ctx()) -> {ok, term(), pinchpi_context:ctx()} | error.
-spec register_all([module()], pinchpi_context:ctx()) -> pinchpi_context:ctx().