MLLP.Peer (mllp v0.9.9)
Link to this section Summary
Link to this section Types
Link to this type
error_type()
Specs
error_type() :: :client_ip_not_allowed | :fail_to_verify_client_cert
Link to this type
peer_name()
Specs
peer_name() :: String.t() | :inet.ip_address()
Specs
t() :: %{
transport: :ranch_tcp | :ranch_ssl,
socket: :ranch_transport.socket(),
client_info: {:inet.ip_address(), :inet.port_number()}
}
Link to this section Functions
Link to this function
validate(peer, arg2)
Specs
validate(t(), map()) :: {:ok, peer_name()} | {:error, error_type()}