Documentation ¶
Overview ¶
Package transport provides predefined transport protocol.
Index ¶
Constants ¶
View Source
const Unknown = "Unknown"
Unknown indicates the protocol is unknown.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol int
Protocol indicates the transport protocol.
const ( PurePayload Protocol = 0 TTHeader Protocol = 1 << iota Framed HTTP GRPC TTHeaderFramed = TTHeader | Framed )
Predefined transport protocols. Framed is suggested.
Click to show internal directories.
Click to hide internal directories.