Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(config PoolConfig) *Pool
NewPool creates a new worker pool with auto-scaling capabilities
func (*Pool) GetMetrics ¶
func (p *Pool) GetMetrics() poolMetrics
GetMetrics returns current pool metrics
func (*Pool) Start ¶
func (p *Pool) Start()
Start initializes the worker pool and starts the scaling manager
func (*Pool) SubmitPriority ¶
SubmitPriority adds a job with specified priority (higher number = higher priority)
type PoolConfig ¶
Click to show internal directories.
Click to hide internal directories.