Fact.Seam.FileWriter behaviour (Fact v0.2.1)
View SourceBehaviour defining the contract for writing files within the Fact system.
Implementations of this seam are responsible for writing arbitrary values to a specified path. The behaviour allows different file writing strategies or formats to be used interchangeably.
Callback
write/4– Writes a given value to the provided path using the configured implementation and options. Returns:okon 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()