View Source locus_maxmind_download (locus v2.3.7)
Link to this section Summary
Link to this section Types
Specs
event() :: locus_http_download:event() | {checksum, locus_http_download:event()}.
Specs
msg() :: {event, event()} | {finished, {error, no_license_key_defined}} | {finished, {error, {checksum_download, term()}}} | {finished, {error, {bad_checksum, #{expected := binary(), actual := binary()}}}} | {finished, {error, {bad_checksum_format, binary()}}} | locus_http_download:msg().
Specs
opt() :: {license_key, binary() | string()} | {date, calendar:date()} | locus_http_download:opt().
Specs
state() :: #state{}.
Specs
success() :: locus_http_download:success().
Link to this section Functions
Specs
Specs
Specs
Specs
Specs
init(_) -> no_return().
Specs
init_([InitArg, ...]) -> no_return() when InitArg :: OwnerPid | Edition | RequestHeaders | Opts, OwnerPid :: pid(), Edition :: atom(), RequestHeaders :: locus_http_download:headers(), Opts :: [opt()].
Specs
start_link(atom(), locus_http_download:headers(), [opt()]) -> {ok, pid()}.
Specs
terminate(term(), state()) -> ok.
Specs
validate_opts(proplists:proplist()) -> {ok, {[opt()], proplists:proplist()}} | {error, BadOpt :: term()}.