Documentation ¶
Index ¶
- Constants
- func WithRecorder(recorder supbapis.Recorder) option
- type SupbStrategies
- func (r *SupbStrategies) DeriveKey(parentKey types.SupbStrategyKey) types.SupbStrategyKey
- func (r *SupbStrategies) GetStrategies(stTypes string, strategyKey types.SupbStrategyKey) (*model.SupbStrategyBaseInfo, error)
- func (r *SupbStrategies) Initialize(opts ...option)
- func (r *SupbStrategies) LinkSlaveAssume(strategyTypes string, strategyKey types.SupbStrategyKey, ...) (*linkAssume, error)
- func (r *SupbStrategies) ListStrategies(stTypes string) ([]*model.SupbStrategyBaseInfo, error)
- func (r *SupbStrategies) OptionConfig(opts ...option)
- func (r *SupbStrategies) PutStrategiesAssume(stTypes string, strategy *model.SupbStrategyBaseInfo) (*putAssume, error)
- func (r *SupbStrategies) RemoveStrategiesAssume(stTypes string, strategyKey types.SupbStrategyKey) (*removeAssume, error)
- func (r *SupbStrategies) UnLinkSlaveAssume(strategyTypes string, strategyKey types.SupbStrategyKey, ...) (*unLinkAssume, error)
Constants ¶
View Source
const ( StaticStrategyRecorderKeyFormat = "/repository/superbahnManager/strategy/static/%v" DynamicStrategyRecorderKeyFormat = "/repository/superbahnManager/strategy/dynamic/%v" )
Variables ¶
This section is empty.
Functions ¶
func WithRecorder ¶
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)
Click to show internal directories.
Click to hide internal directories.