package
0.0.0-20200601021147-e1aa8c7e24af
Repository: https://github.com/hello2mao/go-common.git
Documentation: pkg.go.dev

# Functions

ClearChannel clear all content in channel.
NewAutoscaler return new Autoscaler object.
ReadChanWithTimeout read something from channel with timeout.
WriteChanWithTimeout write something to channel with timeout.

# Constants

DefaultMaxWorkerQuantity is the default maxWorkerQuantity.
DefaultMinWorkerQuantity is the default minWorkerQuantity.
DefaultScaleDownThreshold is the default scaleDownThreshold.
DefaultScaleUpThreshold is the default scaleUpThreshold.

# Variables

ErrChanClosed means the channel waited from is closed.
ErrNotChanType means object is not channel, but used as channel.
should never happen.
ErrTimeout means waiting is timeout.

# Structs

Autoscaler struct.

# Interfaces

Executor backend interface.
Job is the interface of the REAL JOB need to impl.