mapper

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) SetRootCA

func (mapper *MainMapper) SetRootCA(pubKey crypto.PubKey)

保存CA

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

Jump to

Keyboard shortcuts

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