PingPong.ServiceBehaviour behaviour (PingPong v0.1.0)

Copy Markdown View Source

Behaviour implemented by PingPong notification services.

A service receives a payload map and an options map, validates the data it needs, performs delivery, and returns a PingPong result tuple.

Summary

Callbacks

Delivers a notification using service-specific payload and options.

Callbacks

call(payload, options)

Delivers a notification using service-specific payload and options.

Implementations should return {:ok, response} on success and an error tuple on failure.