VertexCacheSdk.Comm.ClientConnector (vertexcache_sdk v1.0.0)

View Source

Primary SDK transport layer for VertexCache.

Handles TLS, IDENT handshake, framing, and encryption.

Summary

Types

socket()

@type socket() :: port() | :ssl.sslsocket()

state()

@type state() :: %{socket: socket(), opts: VertexCacheSdk.Model.ClientOption.t()}

Functions

close(map)

@spec close(state()) :: :ok

connect(map)

@spec connect(map()) ::
  {:ok, state()} | {:error, VertexCacheSdk.Model.VertexCacheSdkException.t()}

is_connected(map)

@spec is_connected(state()) :: boolean()

new(opts)

@spec new(VertexCacheSdk.Model.ClientOption.t()) :: state()

send(state, message)

@spec send(state(), String.t()) ::
  {:ok, String.t()} | {:error, VertexCacheSdk.Model.VertexCacheSdkException.t()}