Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
Run()
}
Controller provide a manager to control the distcc turbo behavior.
func NewController ¶
func NewController( event types.RoleChangeEvent, conf *config.DistCCControllerConfig, ops store.Ops) Controller
NewController get a new Controller
type Operator ¶
Operator provide a manager to modify the distcc turbo settings.
func NewOperator ¶
func NewOperator( conf *config.DistCCControllerConfig, ops store.Ops) Operator
NewOperator get a new Operator
type Strategy ¶
Strategy provide a manager to decide the settings changes to distcc turbo settings.
func NewStrategy ¶
func NewStrategy( conf *config.DistCCControllerConfig, ops store.Ops) Strategy
NewStrategy get a new strategy
type StrategyLevel ¶
type StrategyLevel int
StrategyLevel describe the levels of strategy
const ( StrategyNever StrategyLevel = iota Strategy1W10T Strategy2W20T Strategy1M30T )
func (*StrategyLevel) GetCondition ¶
func (sl *StrategyLevel) GetCondition() (limit int, lastSeconds int64)
GetCondition get the limit and last-time for a specific strategy level
func (*StrategyLevel) String ¶
func (sl *StrategyLevel) String() string
String return the string of strategy level
Click to show internal directories.
Click to hide internal directories.