Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStrategyFactory ¶
func NewStrategyFactory() *strategyFactory
Types ¶
type StrategyApi ¶
type StrategyApi interface {
GetIndex() int32
GetMax() int32
/**
策略执行
@param index
@param max
@return int32
*/
Exec(index, max int32) int32
}
* 抽象处理
type StrategyBase ¶
type StrategyBase struct {
// contains filtered or unexported fields
}
func (*StrategyBase) GetIndex ¶
func (this *StrategyBase) GetIndex() int32
func (*StrategyBase) GetMax ¶
func (this *StrategyBase) GetMax() int32
func (*StrategyBase) SetIndex ¶
func (this *StrategyBase) SetIndex(index int32)
func (*StrategyBase) SetMax ¶
func (this *StrategyBase) SetMax(max int32)
Click to show internal directories.
Click to hide internal directories.