protocol

package
v0.0.0-...-9987061 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2017 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGizpProtocol

func NewGizpProtocol() netx.Protocol

NewGizpProtocol cteate a gzip protocol implement

func NewJSONProtocol

func NewJSONProtocol(interfFunc func() interface{}) netx.Protocol

NewJSONProtocol cteate a json Protocol implement

func NewKeepAliveProtocol

func NewKeepAliveProtocol(readTimeOut, writeTimeOut time.Duration, msg []byte) netx.Protocol

NewKeepAliveProtocol cteate a KeepAlive Protocol implement

func NewLengthFieldProtocol

func NewLengthFieldProtocol(lengthFieldLength int) netx.Protocol

NewLengthFieldProtocol cteate a LengthField Protocol implement

func NewMsgpackProcotol

func NewMsgpackProcotol(interfFunc func() interface{}) netx.Protocol

NewMsgpackProcotol cteate a Msgpack Protocol implement

func NewProtoBufProcotol

func NewProtoBufProcotol(getMessageImpl func() proto.Message) netx.Protocol

NewProtoBufProcotol cteate a ProtoBuf Protocol implement

func NewSnappyProtocol

func NewSnappyProtocol() netx.Protocol

NewSnappyProtocol cteate a Snappy Protocol implement

func NewTerminalProtocol

func NewTerminalProtocol() netx.Protocol

NewTerminalProtocol cteate a Terminal Protocol implement

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL