MongoosePush v2.0.0 MongoosePush.Service behaviour View Source
Generic interface for push notifications services.
Link to this section Summary
Types
Error tuple with unified internal representation and exact reason returned by service
Link to this section Types
Error tuple with unified internal representation and exact reason returned by service
Link to this type
error_type()
View Sourceerror_type() :: :invalid_request | :internal_config | :auth | :unregistered | :too_many_requests | :unspecified | :service_internal | :payload_too_large | :unknown
Link to this section Callbacks
Link to this callback
choose_pool(arg1)
View Sourcechoose_pool(MongoosePush.mode()) :: MongoosePush.Application.pool_name() | nil
Link to this callback
prepare_notification(arg1, arg2, arg3)
View Sourceprepare_notification( String.t(), MongoosePush.request(), MongoosePush.Application.pool_name() ) :: notification()
Link to this callback
push(notification, arg2, arg3, options)
View Sourcepush( notification(), String.t(), MongoosePush.Application.pool_name(), options() ) :: :ok | {:error, error()} | {:error, MongoosePush.error()}