View Source Bonfire.Common.SchemaModule behaviour (Bonfire v0.9.11-social-beta.6)

Find a context or query module via its schema, backed by a global cache of known schema modules to be queried by their schema, or vice versa (eg. via ContextModule).

Summary

Callbacks

Points to the related context module

Points to the related query module

Declares a schema module

Callbacks

context_module()

(optional)
@callback context_module() :: atom()

Points to the related context module

query_module()

(optional)
@callback query_module() :: atom()

Points to the related query module

schema_module()

(optional)
@callback schema_module() :: any()

Declares a schema module

Functions

app_modules()

linked_context_modules()

linked_query_modules()

modules()

@spec modules() :: [atom()]

Callback implementation for Bonfire.Common.ExtensionBehaviour.modules/0.