Documentation
¶
Index ¶
- type Cycle
- func (c *Cycle) Call(ctx context.Context, slotIndex int, req interface{}) (interface{}, error)
- func (c *Cycle) CallPrior(ctx context.Context, slotIndex int, req interface{}) (interface{}, error)
- func (c *Cycle) NormalizeSlotIndex(index int) int
- func (c *Cycle) Run()
- func (c *Cycle) SizeOfQInSlot() int
- func (c *Cycle) SizeOfSlot() int
- func (c *Cycle) Stop()
- func (c *Cycle) WaitStop(ctx context.Context) error
- type GenProc
- type QHandler
- type Rsp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cycle ¶
type Cycle struct {
// contains filtered or unexported fields
}
Cycle : multi-queue cycle
func NewRunCycle ¶
NewRunCycle : new cycle and run
func (*Cycle) NormalizeSlotIndex ¶
NormalizeSlotIndex slot index
func (*Cycle) SizeOfQInSlot ¶
SizeOfQInSlot : get queue size in each slot
type GenProc ¶
type GenProc struct {
// contains filtered or unexported fields
}
GenProc : generic proc
Click to show internal directories.
Click to hide internal directories.