View Source kpro_auth_backend behaviour (kafka_protocol v4.1.9)

Summary

Types

Link to this type

server_auth_response/0

View Source
-type server_auth_response() :: term().

Callbacks

-callback auth(Host :: string(),
               Sock :: gen_tcp:socket() | ssl:sslsocket(),
               Mod :: gen_tcp | ssl,
               ClientName :: binary(),
               Timeout :: pos_integer(),
               SaslOpts :: term()) ->
                  ok | {ok, server_auth_response()} | {error, Reason :: term()}.
-callback auth(Host :: string(),
               Sock :: gen_tcp:socket() | ssl:sslsocket(),
               HandShakeVsn :: non_neg_integer(),
               Mod :: gen_tcp | ssl,
               ClientName :: binary(),
               Timeout :: pos_integer(),
               SaslOpts :: term()) ->
                  ok | {ok, server_auth_response()} | {error, Reason :: term()}.

Functions

Link to this function

auth(CallbackModule, Host, Sock, HandShakeVsn, Mod, ClientName, Timeout, SaslOpts)

View Source
-spec auth(CallbackModule :: atom(),
           Host :: string(),
           Sock :: gen_tcp:socket() | ssl:sslsocket(),
           HandShakeVsn :: non_neg_integer(),
           Mod :: gen_tcp | ssl,
           ClientName :: binary(),
           Timeout :: pos_integer(),
           SaslOpts :: term()) ->
              ok | {ok, server_auth_response()} | {error, Reason :: term()}.