VertexCacheSdk.Comm.ClientConnector (vertexcache_sdk v1.0.0)
View SourcePrimary SDK transport layer for VertexCache.
Handles TLS, IDENT handshake, framing, and encryption.
Summary
Types
@type socket() :: port() | :ssl.sslsocket()
@type state() :: %{socket: socket(), opts: VertexCacheSdk.Model.ClientOption.t()}
Functions
@spec close(state()) :: :ok
@spec connect(map()) :: {:ok, state()} | {:error, VertexCacheSdk.Model.VertexCacheSdkException.t()}
@spec new(VertexCacheSdk.Model.ClientOption.t()) :: state()
@spec send(state(), String.t()) :: {:ok, String.t()} | {:error, VertexCacheSdk.Model.VertexCacheSdkException.t()}