View Source ExGram.Middleware behaviour (ex_gram v0.53.0)

Helper to make it easier to create middlewares

Summary

Types

@type opts() ::
  binary()
  | tuple()
  | atom()
  | integer()
  | float()
  | [opts()]
  | %{required(opts()) => opts()}

Callbacks

@callback call(ExGram.Cnt.t(), opts()) :: ExGram.Cnt.t()
@callback init(opts()) :: opts()

Functions