package
0.0.0-20190422025920-beccf3fe4313
Repository: https://github.com/changwh/go-common.git
Documentation: pkg.go.dev
# Functions
InitTCP listen all tcp.bind and start accept connections.
InitTCPV1 listen all tcp.bind and start accept connections.
InitWebsocket listen all tcp.bind and start accept connections.
InitWebsocketV1 listen all tcp.bind and start accept connections.
InitWebsocketWithTLS init websocket with tls.
InitWebsocketWithTLSV1 .
InitWhitelist a whitelist struct.
NewBucket new a bucket struct.
NewChannel new a channel.
NewRing .
NewRoom new a room struct, store channel room info.
NewRound new a round struct.
NewServer returns a new Server.
# Variables
bucket.
.
server.
rpc.
.
.
.
channel.
.
ring.
.
room.
.
timer.
.
# Structs
Bucket is a channel holder.
Channel used by message pusher send msg to write goroutine.
NoAuthParam .
ProtoRoom room proto.
Report is report params.
Ring .
Room is a room.
Round userd for connection round-robin get a reader/writer/timer for split big lock.
RoundOptions .
Server .
Whitelist .