Documentation
¶
Index ¶
- Constants
- func GetMainStoreKey() string
- type MainMapper
- func (mapper *MainMapper) AddAppliedQOSAmount(amount uint64)
- func (mapper *MainMapper) Copy() mapper.IMapper
- func (mapper *MainMapper) GetAppliedQOSAmount() (v uint64)
- func (mapper *MainMapper) GetRootCA() crypto.PubKey
- func (mapper *MainMapper) GetSPOConfig() types.SPOConfig
- func (mapper *MainMapper) GetStakeConfig() types.StakeConfig
- func (mapper *MainMapper) MapperName() string
- func (mapper *MainMapper) SetAppliedQOSAmount(amount uint64)
- func (mapper *MainMapper) SetRootCA(pubKey crypto.PubKey)
- func (mapper *MainMapper) SetSPOConfig(config types.SPOConfig)
- func (mapper *MainMapper) SetStakeConfig(config types.StakeConfig)
Constants ¶
View Source
const ( BaseMapperName = "base" RootCAKey = "rootca" TotalQOSAmountKey = "totalqos" AppliedQOSAmountKey = "appliedqos" SPOConfigKey = "spo" StakeConfigKey = "stake" )
Variables ¶
This section is empty.
Functions ¶
func GetMainStoreKey ¶
func GetMainStoreKey() string
Types ¶
type MainMapper ¶
type MainMapper struct {
*mapper.BaseMapper
}
func GetMainMapper ¶ added in v0.0.3
func GetMainMapper(ctx context.Context) *MainMapper
func NewMainMapper ¶
func NewMainMapper() *MainMapper
func (*MainMapper) AddAppliedQOSAmount ¶ added in v0.0.3
func (mapper *MainMapper) AddAppliedQOSAmount(amount uint64)
增加 已分配 QOS amount
func (*MainMapper) Copy ¶
func (mapper *MainMapper) Copy() mapper.IMapper
func (*MainMapper) GetAppliedQOSAmount ¶ added in v0.0.3
func (mapper *MainMapper) GetAppliedQOSAmount() (v uint64)
获取已分配QOS总数
func (*MainMapper) GetRootCA ¶ added in v0.0.2
func (mapper *MainMapper) GetRootCA() crypto.PubKey
获取CA
func (*MainMapper) GetSPOConfig ¶ added in v0.0.3
func (mapper *MainMapper) GetSPOConfig() types.SPOConfig
获取SPOConfig
func (*MainMapper) GetStakeConfig ¶ added in v0.0.3
func (mapper *MainMapper) GetStakeConfig() types.StakeConfig
获取StakeConfig
func (*MainMapper) MapperName ¶
func (mapper *MainMapper) MapperName() string
func (*MainMapper) SetAppliedQOSAmount ¶ added in v0.0.3
func (mapper *MainMapper) SetAppliedQOSAmount(amount uint64)
设置 已分配 QOS amount
func (*MainMapper) SetSPOConfig ¶ added in v0.0.3
func (mapper *MainMapper) SetSPOConfig(config types.SPOConfig)
设置SPOConfig
func (*MainMapper) SetStakeConfig ¶ added in v0.0.3
func (mapper *MainMapper) SetStakeConfig(config types.StakeConfig)
设置StakeConfig
Click to show internal directories.
Click to hide internal directories.