Documentation
¶
Index ¶
- Variables
- func NewShaperQueue() *shaperQueue
- func VerifyConfig(config *Config) error
- type Allocator
- type CLASSID
- type Config
- type Frame
- type Session
- func (s *Session) Accept() (io.ReadWriteCloser, error)
- func (s *Session) AcceptStream() (*Stream, error)
- func (s *Session) Close() error
- func (s *Session) IsClosed() bool
- func (s *Session) LocalAddr() net.Addr
- func (s *Session) NumStreams() int
- func (s *Session) Open() (io.ReadWriteCloser, error)
- func (s *Session) OpenStream() (*Stream, error)
- func (s *Session) RemoteAddr() net.Addr
- func (s *Session) SetDeadline(t time.Time) error
- type Stream
- func (s *Stream) Close() error
- func (s *Stream) CloseWrite() error
- func (s *Stream) LocalAddr() net.Addr
- func (s *Stream) Read(b []byte) (n int, err error)
- func (s *Stream) RemoteAddr() net.Addr
- func (s *Stream) SetDeadline(t time.Time) error
- func (s *Stream) SetReadDeadline(t time.Time) error
- func (s *Stream) SetWriteDeadline(t time.Time) error
- func (s *Stream) Write(b []byte) (n int, err error)
- func (s *Stream) WriteTo(w io.Writer) (n int64, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidProtocol = errors.New("invalid protocol") ErrConsumed = errors.New("peer consumed more than sent") ErrGoAway = errors.New("stream id overflows, should start a new connection") ErrTimeout net.Error = &timeoutError{} ErrWouldBlock = errors.New("operation would block on IO") )
Functions ¶
func NewShaperQueue ¶
func NewShaperQueue() *shaperQueue
func VerifyConfig ¶
Types ¶
type Config ¶
type Config struct {
Version int
KeepAliveDisabled bool
KeepAliveInterval time.Duration
KeepAliveTimeout time.Duration
MaxFrameSize int
MaxStreamBuffer int
StreamReadTimeout time.Duration
IdleProbeAfter time.Duration
IdleProbeTimeout time.Duration
}
func DefaultConfig ¶
func DefaultConfig() *Config
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) AcceptStream ¶
func (*Session) NumStreams ¶
func (*Session) OpenStream ¶
func (*Session) RemoteAddr ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) CloseWrite ¶
func (*Stream) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.