View Source Mobilizon.Service.FrontEndAnalytics behaviour (Mobilizon v5.0.0-beta.1)

Behaviour for any analytics service

Summary

Callbacks

The configuration for the service

The CSP configuration to add for the service to work

Whether the service is enabled

Callbacks

@callback configuration() :: keyword()

The configuration for the service

@callback csp() :: keyword()

The CSP configuration to add for the service to work

@callback enabled?() :: boolean()

Whether the service is enabled

@callback id() :: String.t()

Functions

@spec config() :: map()
@spec csp() :: keyword()
@spec providers() :: [module()]