Documentation ¶
Index ¶
Constants ¶
View Source
const ( Error MessageType = 0x01 Request = 0x02 Response = 0x04 Heartbeat = 0x08 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MessageType ¶
type MessageType int
type NewCodec ¶
type NewCodec func(io.ReadWriteCloser) Codec
Takes in a connection/buffer and returns a new Codec
type TransportType ¶ added in v0.2.0
type TransportType int
const ( TRANSPORTTYPE_BEGIN TransportType = iota TRANSPORT_TCP TRANSPORT_HTTP TRANSPORTTYPE_UNKNOWN )
func GetTransportType ¶ added in v0.2.0
func GetTransportType(t string) TransportType
func (TransportType) String ¶ added in v0.2.0
func (t TransportType) String() string
Click to show internal directories.
Click to hide internal directories.