Documentation ¶
Index ¶
Constants ¶
View Source
const CLIENT_HEADER_SIZE = 8
View Source
const RECV_BUF_SIZE_DEF = 4096 * 100
Variables ¶
View Source
var Setting = &ServerSetting{ RecvBufSize: RECV_BUF_SIZE_DEF, }
View Source
var Version = "v0.0.0"
Functions ¶
func InitServerConfig ¶
func InitServerConfig()
func ParseHeader ¶
Types ¶
type ServerInfo ¶
type ServerSetting ¶
type ServerSetting struct {
RecvBufSize int // default is 4k
}
type ServerUniqueId ¶
type ServerUniqueId struct {
UID int64 `json:"uid"`
}
type SpanServer ¶
type SpanServer struct {
// contains filtered or unexported fields
}
func (*SpanServer) Run ¶
func (server *SpanServer) Run() (code int, err error)
Click to show internal directories.
Click to hide internal directories.