View Source grisp_connect_cluster (grisp_connect v2.1.0)

Link to this section Summary

Link to this section Types

-type node_options() ::
    #{hostname := binary(),
      address := inet:ip4_address(),
      cookie := atom(),
      ca := binary(),
      fingerprint := binary(),
      monitor => boolean()}.

Link to this section Functions

Link to this function

handle_call(Msg, From, State)

View Source
Link to this function

handle_info(Info, State)

View Source
Link to this function

is_allowed(CertFingerprint)

View Source
-spec is_allowed(CertFingerprint :: binary()) -> boolean().
-spec join(Node :: atom(), Opts :: node_options()) -> true | false | error.
-spec leave(Node :: atom()) -> true | false.
-spec list() -> [#{nodename := atom(), connected := boolean()}].