Discover Packages
go.unistack.org/micro-server-tcp/v3
package
module
Version:
v3.10.0
Opens a new window with list of versions in this module.
Published: Jan 30, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
TCP Server
The TCP micro.Server implemtation. It's a partial implementation which strips out codecs, transports, etc but enables you
to create a TCP Server that could potentially be used for some TCP based API services.
Usage
Expand ▾
Collapse ▴
Documentation
¶
Package tcp implements a go-micro.Server
DefaultMaxMsgSize define maximum message size that server can send
or receive. Default value is 8K
AuthTLS should be used to setup a secure authentication using TLS
Listener specifies the net.Listener to use instead of the default
MaxConn specifies maximum number of max simultaneous connections to server
MaxMsgSize set the maximum message in bytes the server can receive and
send. Default maximum message size is 8K
type Handler interface {
Serve(net .Conn )
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.