agala v2.0.0 Agala.Provider behaviour

Behaviour that defines root structure for Agala provider

Link to this section Summary

Callbacks

This function defines name for Agala.Reciever module for specific provider. This adds some portion of flexibility for provider creators - the are not forced to follow any naming convention

This function defines name for Agala.Responser module for specific provider. This adds some portion of flexibility for provider creators - the are not forced to follow any naming convention

Link to this section Callbacks

Link to this callback get_receiver()
get_receiver() :: atom

This function defines name for Agala.Reciever module for specific provider. This adds some portion of flexibility for provider creators - the are not forced to follow any naming convention.

Examples

iex> Agala.Provider.Vk.get_receiver
Agala.Provider.Vk.Receiver
iex> Agala.Provider.Telegram.get_receiver
Agala.Provider.Telegram.Receiver
Link to this callback get_responser()
get_responser() :: atom

This function defines name for Agala.Responser module for specific provider. This adds some portion of flexibility for provider creators - the are not forced to follow any naming convention.

Examples

iex> Agala.Provider.Vk.get_responser
Agala.Provider.Vk.Responser
iex> Agala.Provider.Telegram.get_responser
Agala.Provider.Telegram.Responser