strategies

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaticStrategyRecorderKeyFormat  = "/repository/superbahnManager/strategy/static/%v"
	DynamicStrategyRecorderKeyFormat = "/repository/superbahnManager/strategy/dynamic/%v"
)

Variables

This section is empty.

Functions

func WithRecorder

func WithRecorder(recorder supbapis.Recorder) option

Types

type SupbStrategies

type SupbStrategies struct {
	// contains filtered or unexported fields
}

func NewSupbResManager

func NewSupbResManager() *SupbStrategies

func (*SupbStrategies) DeriveKey

func (r *SupbStrategies) DeriveKey(parentKey types.SupbStrategyKey) types.SupbStrategyKey

func (*SupbStrategies) GetStrategies

func (r *SupbStrategies) GetStrategies(stTypes string, strategyKey types.SupbStrategyKey) (*model.SupbStrategyBaseInfo, error)

func (*SupbStrategies) Initialize

func (r *SupbStrategies) Initialize(opts ...option)

func (*SupbStrategies) LinkSlaveAssume

func (r *SupbStrategies) LinkSlaveAssume(strategyTypes string, strategyKey types.SupbStrategyKey, applicationKey types.SupbApplicationKey, slave *model.StrategySlave) (*linkAssume, error)

func (*SupbStrategies) ListStrategies

func (r *SupbStrategies) ListStrategies(stTypes string) ([]*model.SupbStrategyBaseInfo, error)

func (*SupbStrategies) OptionConfig

func (r *SupbStrategies) OptionConfig(opts ...option)

func (*SupbStrategies) PutStrategiesAssume

func (r *SupbStrategies) PutStrategiesAssume(stTypes string, strategy *model.SupbStrategyBaseInfo) (*putAssume, error)

put 是添加操作,如果已经存在则覆盖

func (*SupbStrategies) RemoveStrategiesAssume

func (r *SupbStrategies) RemoveStrategiesAssume(stTypes string, strategyKey types.SupbStrategyKey) (*removeAssume, error)

func (*SupbStrategies) UnLinkSlaveAssume

func (r *SupbStrategies) UnLinkSlaveAssume(strategyTypes string, strategyKey types.SupbStrategyKey, appKey types.SupbApplicationKey) (*unLinkAssume, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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