Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProtocolVersion . ProtocolVersion = 1 // HandshakeTimeout . HandshakeTimeout = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func EncodeRequestHeader ¶
func EncodeRequestHeader(w io.Writer, h *RequestHeader) error
EncodeRequestHeader .
func EncodeResponseHeader ¶
func EncodeResponseHeader(w io.Writer, h *ResponseHeader) error
EncodeResponseHeader .
Types ¶
type RequestHeader ¶
RequestHeader .
func DecodeRequestHeader ¶
func DecodeRequestHeader(r io.Reader) (*RequestHeader, error)
DecodeRequestHeader .
type ResponseHeader ¶
ResponseHeader .
func DecodeResponseHeader ¶
func DecodeResponseHeader(r io.Reader) (*ResponseHeader, error)
DecodeResponseHeader .
Click to show internal directories.
Click to hide internal directories.