Documentation
¶
Index ¶
- type List
- type RBuffergo
- func (b *RBuffergo) CanRead(size int) bool
- func (b *RBuffergo) CanWrite(size int) bool
- func (b *RBuffergo) Capacity() int
- func (b *RBuffergo) Clear()
- func (b *RBuffergo) Empty() bool
- func (b *RBuffergo) Full() bool
- func (b *RBuffergo) GetBuffer() []byte
- func (b *RBuffergo) GetReadLineBuffer() []byte
- func (b *RBuffergo) GetWriteLineBuffer() []byte
- func (b *RBuffergo) Read(data []byte) bool
- func (b *RBuffergo) Restore()
- func (b *RBuffergo) Size() int
- func (b *RBuffergo) SkipRead(size int)
- func (b *RBuffergo) SkipWrite(size int)
- func (b *RBuffergo) Store()
- func (b *RBuffergo) Write(data []byte) bool
- type ROBuffergo
- func (b *ROBuffergo) Empty() bool
- func (b *ROBuffergo) Front() (error, interface{})
- func (b *ROBuffergo) FrontInter() *ROBuffergoInter
- func (b *ROBuffergo) Full() bool
- func (b *ROBuffergo) Get(id int) (error, data interface{})
- func (b *ROBuffergo) PopFront() error
- func (b *ROBuffergo) Set(id int, data interface{}) error
- func (b *ROBuffergo) Size() int
- type ROBuffergoInter
- type Req
- type ReqQueue
- type Rlistgo
- type RlistgoInter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RBuffergo ¶
type RBuffergo struct {
// contains filtered or unexported fields
}
func NewRBuffergo ¶
func (*RBuffergo) GetReadLineBuffer ¶
func (*RBuffergo) GetWriteLineBuffer ¶
type ROBuffergo ¶
type ROBuffergo struct {
// contains filtered or unexported fields
}
func NewROBuffer ¶
func NewROBuffer(len int, startid int, maxid int) *ROBuffergo
func (*ROBuffergo) Empty ¶
func (b *ROBuffergo) Empty() bool
func (*ROBuffergo) Front ¶
func (b *ROBuffergo) Front() (error, interface{})
func (*ROBuffergo) FrontInter ¶
func (b *ROBuffergo) FrontInter() *ROBuffergoInter
func (*ROBuffergo) Full ¶
func (b *ROBuffergo) Full() bool
func (*ROBuffergo) Get ¶
func (b *ROBuffergo) Get(id int) (error, data interface{})
func (*ROBuffergo) PopFront ¶
func (b *ROBuffergo) PopFront() error
func (*ROBuffergo) Set ¶
func (b *ROBuffergo) Set(id int, data interface{}) error
func (*ROBuffergo) Size ¶
func (b *ROBuffergo) Size() int
type ROBuffergoInter ¶
type ROBuffergoInter struct { Value interface{} // contains filtered or unexported fields }
func (*ROBuffergoInter) Next ¶
func (bi *ROBuffergoInter) Next() *ROBuffergoInter
type ReqQueue ¶
type ReqQueue[K comparable, V any] struct { // contains filtered or unexported fields }
TaskQueue 管理请求队列和正在执行的任务
func NewReqQueue ¶
func NewReqQueue[K comparable, V any](requestFunc func(K) (V, error)) *ReqQueue[K, V]
NewTaskQueue 创建一个新的任务队列
func (*ReqQueue[K, V]) GetReuseNum ¶
GetReuseNum 获取重用任务数量
func (*ReqQueue[K, V]) ResetReuseNum ¶
func (q *ReqQueue[K, V]) ResetReuseNum()
ResetReuseNum 重置重用任务数量
type Rlistgo ¶
type Rlistgo struct {
// contains filtered or unexported fields
}
func (*Rlistgo) FrontInter ¶
func (b *Rlistgo) FrontInter() *RlistgoInter
type RlistgoInter ¶
type RlistgoInter struct { Value interface{} // contains filtered or unexported fields }
func (*RlistgoInter) Next ¶
func (bi *RlistgoInter) Next() *RlistgoInter
Click to show internal directories.
Click to hide internal directories.