Documentation ¶
Index ¶
- func NewGizpProtocol() netx.Protocol
- func NewJSONProtocol(interfFunc func() interface{}) netx.Protocol
- func NewKeepAliveProtocol(readTimeOut, writeTimeOut time.Duration, msg []byte) netx.Protocol
- func NewLengthFieldProtocol(lengthFieldLength int) netx.Protocol
- func NewMsgpackProcotol(interfFunc func() interface{}) netx.Protocol
- func NewProtoBufProcotol(getMessageImpl func() proto.Message) netx.Protocol
- func NewSnappyProtocol() netx.Protocol
- func NewTerminalProtocol() netx.Protocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGizpProtocol ¶
NewGizpProtocol cteate a gzip protocol implement
func NewJSONProtocol ¶
NewJSONProtocol cteate a json Protocol implement
func NewKeepAliveProtocol ¶
NewKeepAliveProtocol cteate a KeepAlive Protocol implement
func NewLengthFieldProtocol ¶
NewLengthFieldProtocol cteate a LengthField Protocol implement
func NewMsgpackProcotol ¶
NewMsgpackProcotol cteate a Msgpack Protocol implement
func NewProtoBufProcotol ¶
NewProtoBufProcotol cteate a ProtoBuf Protocol implement
func NewSnappyProtocol ¶
NewSnappyProtocol cteate a Snappy Protocol implement
func NewTerminalProtocol ¶
NewTerminalProtocol cteate a Terminal Protocol implement
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.