Stragey

package
v1.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL