Fact.Seam.FileName behaviour (Fact v0.2.0)
View SourceBehaviour defining the contract for generating file names within the Fact system.
Implementations of this seam are responsible for producing a file name based on a given value and optional parameters. This allows flexible naming strategies that can be swapped or configured per database or file type.
Callback
get/3– Generates a file name for the given value using the configured implementation and options. Returns{:ok, path}on success or{:error, reason}on failure.
Summary
Types
@type t() :: struct()
Callbacks
@callback default_options() :: map()
@callback family() :: atom()
@callback id() :: {atom(), non_neg_integer()}
@callback version() :: non_neg_integer()