Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator interface {
Exec() error
}
Operator interface
func NewOperator ¶
func NewOperator(f operatorFunc) Operator
NewOperator initializes a new operation based on a given work function.
type Pooler ¶
Pooler is a worker group that runs a number of operations at concurrency mode depended on operations count.
func NewPooler ¶
func NewPooler(client *client.Client, log logger.Logger, ctx context.Context, cancel context.CancelFunc) *Pooler
NewPooler initializes a new pool with the given operations at the given concurrency.
Click to show internal directories.
Click to hide internal directories.