Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { Close() error Send(message.Message) error Inbox() <-chan message.Message IsAlive() bool RemoteAddress() net.Addr }
Connection defines the interface for interacting with a network connection.
func NewClientConnection ¶
func NewClientConnection(conn net.Conn, l *slog.Logger) Connection
NewClientConnection configures and returns a connection for the client side.
func NewServerConnection ¶
func NewServerConnection(conn net.Conn, l *slog.Logger) Connection
NewServerConnection configures and returns a connection for the server side.
Click to show internal directories.
Click to hide internal directories.