Module backwater

References

Data Types

call_opts()

call_opts() = #{hackney_opts => [hackney_option()], compression_threshold => non_neg_integer(), connect_timeout => timeout(), decode_unsafe_terms => boolean(), max_encoded_result_size => non_neg_integer(), recv_timeout => timeout(), rethrow_remote_exceptions => boolean()}

call_result()

call_result() = backwater_response:t(hackney_error())

clear_opt()

clear_opt() = ranch:opt() | ranch_tcp:opt()

clear_opts()

clear_opts() = [clear_opt()] | ranch:opts()

hackney_error()

hackney_error() = {hackney, term()}

hackney_option()

hackney_option() = proplists:property()

http_opts()

http_opts() = cowboy_http:opts()

stack_item()

stack_item() = {Module::module(), Function::atom(), Arity::arity() | (Args::[term()]), Location::[{file, Filename::string()} | {line, Line::pos_integer()}]}

tls_opt()

tls_opt() = ranch:opt() | ranch_ssl:opt()

tls_opts()

tls_opts() = [tls_opt()] | ranch:opts()

Function Index

call/4Performs remote call on Endpoint.
call/5Performs remote call on Endpoint.
start_clear_server/2Starts a cleartext cowboy listener that can handle remote calls.
start_clear_server/4Like :start_clear_server/2 but one can specify the listener name and tune settings.
start_tls_server/3Starts a TLS cowboy listener that can handle remote calls.
start_tls_server/4Like :start_tls_server/3 but one can specify the listener name and tune (more) settings.
stop_server/0Stops the cowboy listener under the default name.
stop_server/1Stops the cowboy listener under a specific name.

Function Details

call/4

call(Endpoint, Module, Function, Args) -> Result | no_return()

Performs remote call on Endpoint.

Returns:

See also: call/5.

call/5

call(Endpoint, Module, Function, Args, Options) -> Result | no_return()

Performs remote call on Endpoint.

Returns:

See also: call/4.

start_clear_server/2

start_clear_server(Secret, ExposedModules) -> {ok, pid()} | {error, term()}

Starts a cleartext cowboy listener that can handle remote calls.

Returns:

See also: start_clear_server/4.

start_clear_server/4

start_clear_server(Ref, Secret, ExposedModules, Opts) -> {ok, pid()} | {error, term()}

Like :start_clear_server/2 but one can specify the listener name and tune settings.

Returns:

See also: start_clear_server/2.

start_tls_server/3

start_tls_server(Secret, ExposedModules, TLSOpts) -> {ok, pid()} | {error, term()}

Starts a TLS cowboy listener that can handle remote calls.

Returns:

See also: start_tls_server/4.

start_tls_server/4

start_tls_server(Ref, Secret, ExposedModules, Opts) -> {ok, pid()} | {error, term()}

Like :start_tls_server/3 but one can specify the listener name and tune (more) settings.

Returns:

See also: start_tls_server/3.

stop_server/0

stop_server() -> ok | {error, not_found}

Stops the cowboy listener under the default name.

stop_server/1

stop_server(Ref) -> ok | {error, not_found}

Stops the cowboy listener under a specific name.


Generated by EDoc