Downloads an unpacked database edition from MaxMind, as well as its checksum (which it then verifies), without blocking the caller.
Summary
Types
-type event() :: locus_http_download:event() | {checksum, locus_http_download:event()}.
-type opt() :: {license_key, binary() | string()} | {date, calendar:date()} | locus_http_download:opt().
-opaque state()
-type success() :: locus_http_download:success().
Functions
-spec init(_) -> no_return().
-spec proc_lib_init([InitArg, ...]) -> no_return() when InitArg :: OwnerPid | Edition | RequestHeaders | Opts, OwnerPid :: pid(), Edition :: atom(), RequestHeaders :: locus_http_download:headers(), Opts :: [opt()].
-spec start_link(atom(), locus_http_download:headers(), [opt()]) -> {ok, pid()}.
-spec validate_opts(proplists:proplist()) -> {ok, {[opt()], proplists:proplist()}} | {error, BadOpt :: term()}.