Documentation
¶
Index ¶
- Constants
- func GetMainStoreKey() string
- type MainMapper
- func (mapper *MainMapper) Copy() mapper.IMapper
- func (mapper *MainMapper) GetQsc(qscname string) (qscinfo *QscInfo)
- func (mapper *MainMapper) GetRoot() crypto.PubKey
- func (mapper *MainMapper) MapperName() string
- func (mapper *MainMapper) SetQsc(qscname string, qscinfo *QscInfo) bool
- func (mapper *MainMapper) SetRootCA(pubKey crypto.PubKey) error
- type QscInfo
Constants ¶
View Source
const ( BaseMapperName = "base" QSCName = "qsc/[%s]" )
Variables ¶
This section is empty.
Functions ¶
func GetMainStoreKey ¶
func GetMainStoreKey() string
Types ¶
type MainMapper ¶
type MainMapper struct {
*mapper.BaseMapper
}
func NewMainMapper ¶
func NewMainMapper() *MainMapper
func (*MainMapper) Copy ¶
func (mapper *MainMapper) Copy() mapper.IMapper
func (*MainMapper) GetQsc ¶
func (mapper *MainMapper) GetQsc(qscname string) (qscinfo *QscInfo)
func (*MainMapper) MapperName ¶
func (mapper *MainMapper) MapperName() string
type QscInfo ¶
type QscInfo struct {
Qscname string `json:"qscname"`
BankAddr btypes.Address `json:"pubkeybank"`
CreateAddr btypes.Address `json:"createaddr"`
QscPubkey crypto.PubKey `json:"qscpubkey"`
Extrate string `json:"extrate"`
CAqsc []byte `json:"caqsc"`
CAbanker []byte `json:"cabanker"`
Description string `json:"description"`
}
Click to show internal directories.
Click to hide internal directories.