Current section

Files

Jump to
telega include telega@flow_FlowStorage.hrl
Raw

include/telega@flow_FlowStorage.hrl

-record(flow_storage, {
save :: fun((telega@flow:flow_instance()) -> {ok, nil} | {error, any()}),
load :: fun((binary()) -> {ok,
gleam@option:option(telega@flow:flow_instance())} |
{error, any()}),
delete :: fun((binary()) -> {ok, nil} | {error, any()}),
list_by_user :: fun((integer(), integer()) -> {ok,
list(telega@flow:flow_instance())} |
{error, any()})
}).