Documentation ¶
Index ¶
- Constants
- Variables
- func Pack(connectionID protocol.ConnectionID, sequenceID uint32, total uint32, ...) []byte
- func PackSingle(fr Frame) []byte
- func PutFrame(fr Frame)
- type Acknowledgement
- type AcknowledgementRange
- type ConnectionClose
- type ConnectionRequest
- type ConnectionResponse
- type Frame
- type MTURequest
- type MTUResponse
- type StreamClose
- type StreamData
- type StreamRequest
- type StreamResponse
Constants ¶
View Source
const ( ConnectionCloseApplication = iota ConnectionCloseGraceful ConnectionCloseTimeout ConnectionCloseInternal )
View Source
const ( ConnectionResponseSuccess = iota ConnectionResponseFailed )
View Source
const ( IDAcknowledgement = iota IDConnectionRequest IDConnectionResponse IDConnectionClose IDStreamRequest IDStreamResponse IDStreamData IDStreamClose IDMTURequest IDMTUResponse )
View Source
const ( StreamResponseSuccess = iota StreamResponseFailed )
Variables ¶
Functions ¶
func PackSingle ¶
Types ¶
type Acknowledgement ¶
type Acknowledgement struct { Delay int64 Max uint32 Ranges []AcknowledgementRange }
func (*Acknowledgement) Encode ¶
func (fr *Acknowledgement) Encode() []byte
func (*Acknowledgement) ID ¶
func (fr *Acknowledgement) ID() uint32
func (*Acknowledgement) Reset ¶
func (fr *Acknowledgement) Reset()
type AcknowledgementRange ¶
type AcknowledgementRange [2]uint32
func GenerateAcknowledgementRanges ¶ added in v0.0.3
func GenerateAcknowledgementRanges(list []uint32) (ranges []AcknowledgementRange)
type ConnectionClose ¶
func (*ConnectionClose) Encode ¶
func (fr *ConnectionClose) Encode() []byte
func (*ConnectionClose) ID ¶
func (fr *ConnectionClose) ID() uint32
func (*ConnectionClose) Reset ¶ added in v0.0.3
func (fr *ConnectionClose) Reset()
type ConnectionRequest ¶
type ConnectionRequest struct { }
func (*ConnectionRequest) Encode ¶
func (fr *ConnectionRequest) Encode() (n []byte)
func (*ConnectionRequest) ID ¶
func (fr *ConnectionRequest) ID() uint32
func (*ConnectionRequest) Reset ¶ added in v0.0.3
func (fr *ConnectionRequest) Reset()
type ConnectionResponse ¶
type ConnectionResponse struct { ConnectionID protocol.ConnectionID Response byte }
func (*ConnectionResponse) Encode ¶
func (fr *ConnectionResponse) Encode() []byte
func (*ConnectionResponse) ID ¶
func (fr *ConnectionResponse) ID() uint32
func (*ConnectionResponse) Reset ¶ added in v0.0.3
func (fr *ConnectionResponse) Reset()
type MTURequest ¶ added in v0.0.3
type MTURequest struct {
MTU uint64
}
func (*MTURequest) Encode ¶ added in v0.0.3
func (fr *MTURequest) Encode() []byte
func (*MTURequest) ID ¶ added in v0.0.3
func (fr *MTURequest) ID() uint32
func (*MTURequest) Reset ¶ added in v0.0.3
func (fr *MTURequest) Reset()
type MTUResponse ¶ added in v0.0.3
type MTUResponse struct {
MTU uint64
}
func (*MTUResponse) Encode ¶ added in v0.0.3
func (fr *MTUResponse) Encode() []byte
func (*MTUResponse) ID ¶ added in v0.0.3
func (fr *MTUResponse) ID() uint32
func (*MTUResponse) Reset ¶ added in v0.0.3
func (fr *MTUResponse) Reset()
type StreamClose ¶
func (*StreamClose) Encode ¶
func (fr *StreamClose) Encode() []byte
func (*StreamClose) ID ¶
func (fr *StreamClose) ID() uint32
func (*StreamClose) Reset ¶ added in v0.0.3
func (fr *StreamClose) Reset()
type StreamData ¶
func (*StreamData) Encode ¶
func (fr *StreamData) Encode() []byte
func (*StreamData) ID ¶
func (fr *StreamData) ID() uint32
func (*StreamData) Reset ¶
func (fr *StreamData) Reset()
type StreamRequest ¶
func (*StreamRequest) Encode ¶
func (fr *StreamRequest) Encode() []byte
func (*StreamRequest) ID ¶
func (fr *StreamRequest) ID() uint32
func (*StreamRequest) Reset ¶ added in v0.0.3
func (fr *StreamRequest) Reset()
type StreamResponse ¶
func (*StreamResponse) Encode ¶
func (fr *StreamResponse) Encode() []byte
func (*StreamResponse) ID ¶
func (fr *StreamResponse) ID() uint32
func (*StreamResponse) Reset ¶ added in v0.0.3
func (fr *StreamResponse) Reset()
Click to show internal directories.
Click to hide internal directories.