Documentation ¶
Index ¶
- Constants
- type GetFuncEx
- type PoolManager
- type Session
- type Stream
- type StreamManager
- func (mgr *StreamManager) AddStream(stream *Stream)
- func (mgr *StreamManager) Destroy()
- func (mgr *StreamManager) FreeStream(stream *Stream)
- func (mgr *StreamManager) GetStream(useType api.UseType, autoDispatch bool, getFuncEx GetFuncEx) (quic.Stream, error)
- func (mgr *StreamManager) ReleaseStream(useType api.UseType, stream quic.Stream)
Constants ¶
View Source
const ( NumStreamsMax = 99 PoolStreamMinDefault = 2 ThresholdDefault = 0.8 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolManager ¶
type PoolManager struct {
// contains filtered or unexported fields
}
func (*PoolManager) Destroy ¶
func (mgr *PoolManager) Destroy()
type Stream ¶
type Stream struct { // the use type of stream only be stream or message UseType api.UseType // quic stream Stream quic.Stream }
wrapper for session manager
type StreamManager ¶
type StreamManager struct { NumStreamsMax int Session *Session // contains filtered or unexported fields }
func NewStreamManager ¶
func NewStreamManager(streamMax int, autoFree bool, session quic.Session) *StreamManager
func (*StreamManager) AddStream ¶
func (mgr *StreamManager) AddStream(stream *Stream)
func (*StreamManager) Destroy ¶
func (mgr *StreamManager) Destroy()
func (*StreamManager) FreeStream ¶
func (mgr *StreamManager) FreeStream(stream *Stream)
func (*StreamManager) ReleaseStream ¶
func (mgr *StreamManager) ReleaseStream(useType api.UseType, stream quic.Stream)
Click to show internal directories.
Click to hide internal directories.