Behaviours: gen_batch_server.
dependency() = module() | {module(), term()}
name() = {local, atom()} | {global, term()} | {via, atom(), term()} | undefined
opt() = {base_url, uri_string:uri_string()} | {path, iolist() | binary()} | {api_key, iolist() | binary()} | {source_id, iolist() | binary()} | {gun_opts, gun:opts()} | {ordered, boolean()} | {min_batch_size, non_neg_integer()} | {max_batch_size, non_neg_integer()} | {low_batch_size_timeout, non_neg_integer()} | {clock, dependency()} | {gun, dependency()}
| async/2 | Sends a log message and immediately returns. |
| async_batch/2 | Sends a batch of log messages and immediately returns. |
| start_link/0 | Starts a logflare server. |
| start_link/1 | Starts a logflare server. |
| start_link/2 | Starts a logflare server. |
| sync/2 | Sends a log message and waits until the batch it is in, is posted. |
| sync/3 | Sends a log message and waits until the batch it is in, is posted. |
async(ServerRef::gen_batch_server:server_ref(), Log::term()) -> ok
Sends a log message and immediately returns
This won't guarantee that the message will reach the serverasync_batch(ServerRef::gen_batch_server:server_ref(), Logs::[term()]) -> ok
Sends a batch of log messages and immediately returns
This won't guarantee that the messagse will reach the serverstart_link() -> {ok, pid()} | {error, term()}
Starts a logflare server
Starts a logflare server
Starts a logflare server
sync(ServerRef::gen_batch_server:server_ref(), Log::term()) -> ok
Sends a log message and waits until the batch it is in, is posted
Will timeout after 5000 milliseconds.sync(ServerRef::gen_batch_server:server_ref(), Log::term(), Timeout::timeout()) -> ok
Sends a log message and waits until the batch it is in, is posted
This version allows to specify a custom timeout.Generated by EDoc