Erlang driver for HStreamDB.
rebar3 compile
make -C ./.ci up
./rebar3 ct --name '[email protected]' -v -c
./rebar3 cover
make -C ./.ci down
ref: HStream docs
start() ->
_ = application:ensure_all_started(hstreamdb_erl),
GrpcOpts =
#{gun_opts =>
#{transport => ssl,
transport_opts =>
[{verify, verify_peer},
{cacertfile, ?WS_PATH ++ "root_ca.crt"},
{certfile, ?WS_PATH ++ "client.crt"},
{keyfile, ?WS_PATH ++ "client.key"}]}},
Opts = #{url => ?SERVER_URL, rpc_options => GrpcOpts},
{ok, Client} = hstreamdb_client:start(test_client, Opts),
hstreamdb_client:echo(Client).