View Source locus_filesystem_load (locus v2.3.3)
Link to this section Summary
Link to this section Types
Specs
event() :: event_load_attempt_started() | event_load_attempt_dismissed().
Specs
event_load_attempt_dismissed() :: {load_attempt_dismissed, source()}.
Specs
event_load_attempt_started() :: {load_attempt_started, source()}.
Specs
Specs
path() :: nonempty_string().
Specs
source() :: {cache | filesystem, path()}.
Specs
state() :: #state{}.
Specs
success() :: #{modified_on := calendar:datetime(), content := binary()}.
Link to this section Functions
Specs
Specs
Specs
Specs
Specs
init([InitArg, ...]) -> {ok, state()}
when
InitArg :: OwnerPid | Source | PrevModificationDT,
OwnerPid :: pid(),
Source :: source(),
PrevModificationDT :: calendar:datetime() | unknown.
Specs
start_link(source(), calendar:datetime() | unknown) -> {ok, pid()}.
Specs
terminate(term(), state()) -> ok.