package
0.0.0-20241222093054-3ae8ef813aee
Repository: https://github.com/basecomplextech/spec.git
Documentation: pkg.go.dev

# Functions

ClosedContext returns a closed context.
Connect dials an address and returns a connection.
ConnectDialer dials an address and returns a connection.
Default returns the default options.
NewClient returns a new client.
NewClientDialer returns a new client with the given dialer.
NewServer creates a new server with a connection handler.
TestNewContext returns a test context with a test connection.
TestNextContext returns a test context with a test connection.

# Constants

ClientMode_AutoConnect automatically connects and reconnects to the server.
ClientMode_OnDemand connects to the server on demand, does not reconnect on errors.
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author
Client is a SpecMPX client which manages outgoing connections.
No description provided by the author
ConnContext is a connection context.
Context is a channel context.
Handler is a server channel handler.
Server is a SpecMPX server.
No description provided by the author
No description provided by the author

# Type aliases

ClientMode specifies how the client connects to the server.
HandleFunc is a type adapter to allow use of ordinary functions as channel handlers.