Documentation
¶
Index ¶
- type Balancer
- func (b *Balancer[T]) Acquire() *T
- func (b *Balancer[T]) AcquireWait(ctx context.Context, attempts int, pause time.Duration) *T
- func (b *Balancer[T]) NumItems() int
- func (b *Balancer[T]) SetShuffle(shuffle bool)
- func (b *Balancer[T]) TotalFreeRequests() int
- func (b *Balancer[T]) TotalMaxRequests() int
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
func (*Balancer[T]) AcquireWait ¶
func (*Balancer[T]) SetShuffle ¶
func (*Balancer[T]) TotalFreeRequests ¶
func (*Balancer[T]) TotalMaxRequests ¶
Click to show internal directories.
Click to hide internal directories.