ex_gram v0.5.0-rc3 ExGram.Middleware behaviour View Source

Allow creating middlewares

Link to this section Summary

Link to this section Types

Link to this type opts() View Source
opts() ::
  binary()
  | tuple()
  | atom()
  | integer()
  | float()
  | [opts()]
  | %{optional(opts()) => opts()}

Link to this section Functions

Link to this function add_extra(cnt, key, value) View Source

Link to this section Callbacks

Link to this callback init(opts) View Source (optional)
init(opts()) :: opts()