cartel v0.5.0 Cartel.Pusher behaviour

Behaviour for the implementation of push workers

Summary

Callbacks

Pushers must implement actual message sending via this callback

Callbacks

push(pid, message)

Specs

push(pid :: pid, message :: Cartel.Message.t) ::
  :ok |
  :error

Pushers must implement actual message sending via this callback

Implementations should use Cartel.Message.serialize/1 to transform the struct in a format suitable for wire transmission