maxwell v2.2.3 Maxwell.Builder.Middleware

Methods for setting up middlewares.

Link to this section Summary

Link to this section Functions

Link to this macro middleware(middleware, opts \\ []) (macro)

Build middleware macro.

  • middleware - middleware module, for example: Maxwell.Middleware.Json.
  • opts - options setting in compile time, default is [], for example: [encode_func: &Poison.encode/1].

Examples

  @middleware Middleware.Module, []