Documentation ¶
Index ¶
- Constants
- type Data
- func (f *Data) Bytes() []byte
- func (f *Data) Fin() bool
- func (f *Data) Flags() Flags
- func (f *Data) Length() uint32
- func (f *Data) Pack(streamId StreamId, data []byte, fin bool, syn bool) (err error)
- func (f *Data) Reader() io.Reader
- func (f *Data) StreamId() StreamId
- func (f *Data) String() string
- func (f *Data) Syn() bool
- func (f *Data) Type() Type
- type Error
- type ErrorCode
- type ErrorType
- type Flags
- type Frame
- type Framer
- type GoAway
- func (f *GoAway) Debug() io.Reader
- func (f *GoAway) ErrorCode() ErrorCode
- func (f *GoAway) Flags() Flags
- func (f *GoAway) LastStreamId() StreamId
- func (f *GoAway) Length() uint32
- func (f *GoAway) Pack(lastStreamId StreamId, errCode ErrorCode, debug []byte) (err error)
- func (f *GoAway) StreamId() StreamId
- func (f *GoAway) String() string
- func (f *GoAway) Type() Type
- type RPing
- type Rst
- type StreamId
- type Type
- type Unknown
- type WPing
- type WndInc
Constants ¶
View Source
const ( FlagDataFin = 0x1 FlagDataSyn = 0x2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorCode ¶
type ErrorCode uint32
ErrorCode is a 32-bit integer indicating an error condition on a stream or session
type Flags ¶
type Flags uint8
Flags is a 4-bit integer containing frame-specific flag bits in the frame header
type Framer ¶
type Framer interface { // WriteFrame writes the given frame to the underlying transport WriteFrame(Frame) error // ReadFrame reads the next frame from the underlying transport ReadFrame() (Frame, error) }
A Framer serializes/deserializer frames to/from an io.ReadWriter
type GoAway ¶
type GoAway struct {
// contains filtered or unexported fields
}
func (*GoAway) LastStreamId ¶
type Rst ¶
type Rst struct {
// contains filtered or unexported fields
}
Rst is a frame sent to forcibly close a stream
type StreamId ¶
type StreamId uint32
StreamId is 31-bit integer uniquely identifying a stream within a session
type Type ¶
type Type uint8
Type is a 4-bit integer in the frame header that identifies the type of frame
type Unknown ¶
type Unknown struct {
// contains filtered or unexported fields
}
func (*Unknown) PayloadReader ¶
type WndInc ¶
type WndInc struct {
// contains filtered or unexported fields
}
Increase a stream's flow control window size
func (*WndInc) WindowIncrement ¶
Click to show internal directories.
Click to hide internal directories.