FerricStore.Client (ferricstore_sdk v0.1.0)

Copy Markdown View Source

Native-protocol client.

A client process owns one ferric:// socket. After startup/authentication the default mode is request-id multiplexing: callers can issue concurrent GenServer.call/3 requests, the client sends frames immediately, and replies are matched by native protocol request id.

Summary

Types

t()

@type t() :: GenServer.server()

Functions

async_native(client, opcode, payload, opts \\ [])

async_pipeline(client, commands, opts \\ [])

await(ref, timeout \\ 5000)

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

close(client)

command(client, command, args \\ [], opts \\ [])

connect!(opts \\ [])

native(client, opcode, payload, opts \\ [])

pipeline(client, commands, opts \\ [])

start_link(opts \\ [])

yield(ref, timeout \\ 0)