View Source eturnal_ctl (eturnal v1.12.1)

Summary

Types

-type addr() :: inet:ip_address().
-type addr_port() :: {inet:ip_address(), inet:port_number()}.
-type eturnal_node_info() ::
          #eturnal_node_info{eturnal_vsn :: binary(),
                             otp_vsn :: {string(), string()},
                             uptime :: non_neg_integer(),
                             num_sessions :: non_neg_integer(),
                             num_processes :: non_neg_integer(),
                             num_reductions :: non_neg_integer(),
                             total_queue_len :: non_neg_integer(),
                             total_memory :: non_neg_integer()}.
-type session() ::
          #session{pid :: pid(),
                   sid :: binary(),
                   user :: binary(),
                   sock_mod :: sock_mod(),
                   client_addr :: addr_port(),
                   relay_addr :: addr_port(),
                   perm_addrs :: [addr()],
                   peer_addrs :: [addr_port()],
                   sent_bytes :: non_neg_integer(),
                   sent_pkts :: non_neg_integer(),
                   rcvd_bytes :: non_neg_integer(),
                   rcvd_pkts :: non_neg_integer(),
                   start_time :: integer()}.
-type sock_mod() :: gen_udp | gen_tcp | fast_tls.

Functions

-spec disconnect(term()) -> {ok, string()} | {error, string()}.
Link to this function

get_credentials(Expiry, Suffix)

View Source
-spec get_credentials(term(), term()) -> {ok, string()} | {error, string()}.
-spec get_info() -> {ok, string()} | {error, string()}.
-spec get_loglevel() -> {ok, string()} | {error, string()}.
-spec get_password(term()) -> {ok, string()} | {error, string()}.
-spec get_sessions() -> {ok, string()} | {error, string()}.
-spec get_sessions(term()) -> {ok, string()} | {error, string()}.
-spec get_status() -> {ok, string()} | {error, string()}.
-spec get_version() -> {ok, string()} | {error, string()}.
-spec reload() -> ok | {error, string()}.
-spec set_loglevel(term()) -> ok | {error, string()}.