GenRouter.Behaviour behaviour (gen_router v0.1.10)
Callbacks for custom implementation for the Router.
Summary
Callbacks
Renders the view and deliver response to the end client.
Function which converts generic message into GenRouter.Conn structure then match it according to the router specification.
Types
Callbacks
@callback deliver( %GenRouter.Conn{ __skip__: term(), assigns: term(), code: term(), halted: term(), params: term(), path: term(), response: term(), scope: term() }, view(), template(), params(), opts() ) :: %GenRouter.Conn{ __skip__: term(), assigns: term(), code: term(), halted: term(), params: term(), path: term(), response: term(), scope: term() }
Renders the view and deliver response to the end client.
@callback match_message(router(), message(), path(), scope(), assigns(), opts()) :: %GenRouter.Conn{ __skip__: term(), assigns: term(), code: term(), halted: term(), params: term(), path: term(), response: term(), scope: term() }
Function which converts generic message into GenRouter.Conn structure then match it according to the router specification.