View Source ExRocketmq.Transport behaviour (lib_oss v0.1.0)
The transport layer of the rocketmq protocol, default implementation is ExRocketmq.Transport.TCP
Summary
Functions
get the info of transport
output a pkt by transport layer
recv a packet from transport layer
start transport module
stop transport module
Types
Callbacks
@callback info(t()) :: {:ok, %{pid: pid(), host: String.t(), port: non_neg_integer()}} | error_t()
@callback new(ExRocketmq.Typespecs.opts()) :: t()
@callback stop(t()) :: :ok