RedactEx.Algorithms.Algorithm behaviour (RedactEx v0.1.8)
View SourceBehaviour to implement for an algorithm to be configured as a redacting algorithm when using RedactEx
Summary
Callbacks
Returns the AST of the implementing algorithm, given whatever supported configuration
Parses additional configuration at compile time for given algorithm.
Configuration will be kept in Context's extra field
Shall return any configuration (eventually) readable by generate_ast and generate_fallback_ast
Functions
Check that this behaviour is implemented in given module
Types
@type t() :: module()
Callbacks
Returns the AST of the implementing algorithm, given whatever supported configuration
Parses additional configuration at compile time for given algorithm.
Configuration will be kept in Context's extra field
Shall return any configuration (eventually) readable by generate_ast and generate_fallback_ast
The function shall raise in case of errors