Current section
Files
Jump to
Current section
Files
src/lightbulb@providers@data_provider.erl
-module(lightbulb@providers@data_provider).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export_type([data_provider/0]).
-type data_provider() :: {data_provider,
fun(() -> {ok, lightbulb@nonce:nonce()} | {error, binary()}),
fun((binary()) -> {ok, nil} | {error, binary()}),
fun((binary(), binary()) -> {ok, lightbulb@registration:registration()} |
{error, binary()}),
fun((binary(), binary(), binary()) -> {ok,
lightbulb@deployment:deployment()} |
{error, binary()}),
fun(() -> {ok, lightbulb@jwk:jwk()} | {error, binary()})}.