Documentation
¶
Overview ¶
Package ccprotos is a generated protocol buffer package.
It is generated from these files:
regtx.proto
It has these top-level messages:
RegPublicKey RevokePublicKey ActivePublicKey Settings RegGlobalData RegData
Index ¶
- type ActivePublicKey
- type RegData
- func (*RegData) Descriptor() ([]byte, []int)
- func (m *RegData) GetAuthcodes() []int32
- func (m *RegData) GetEnabled() bool
- func (m *RegData) GetPk() *protos.PublicKey
- func (m *RegData) GetRegTs() *google_protobuf.Timestamp
- func (m *RegData) GetRegTxid() string
- func (m *RegData) GetRegion() string
- func (*RegData) ProtoMessage()
- func (m *RegData) Reset()
- func (m *RegData) String() string
- type RegData_s
- type RegGlobalData
- func (*RegGlobalData) Descriptor() ([]byte, []int)
- func (m *RegGlobalData) GetAdminPrivilege() string
- func (m *RegGlobalData) GetChaincodes() map[int32]string
- func (m *RegGlobalData) GetDeployFlag() []byte
- func (m *RegGlobalData) GetRegPrivilege() string
- func (*RegGlobalData) ProtoMessage()
- func (m *RegGlobalData) Reset()
- func (m *RegGlobalData) String() string
- type RegGlobalData_s
- type RegPublicKey
- type RevokePublicKey
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivePublicKey ¶
type ActivePublicKey struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (*ActivePublicKey) Descriptor ¶
func (*ActivePublicKey) Descriptor() ([]byte, []int)
func (*ActivePublicKey) GetKey ¶
func (m *ActivePublicKey) GetKey() []byte
func (*ActivePublicKey) ProtoMessage ¶
func (*ActivePublicKey) ProtoMessage()
func (*ActivePublicKey) Reset ¶
func (m *ActivePublicKey) Reset()
func (*ActivePublicKey) String ¶
func (m *ActivePublicKey) String() string
type RegData ¶
type RegData struct {
Pk *protos.PublicKey `protobuf:"bytes,1,opt,name=pk" json:"pk,omitempty"`
RegTxid string `protobuf:"bytes,3,opt,name=regTxid" json:"regTxid,omitempty"`
RegTs *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=regTs" json:"regTs,omitempty"`
Region string `protobuf:"bytes,5,opt,name=region" json:"region,omitempty"`
Enabled bool `protobuf:"varint,6,opt,name=enabled" json:"enabled,omitempty"`
Authcodes []int32 `protobuf:"varint,10,rep,packed,name=authcodes" json:"authcodes,omitempty"`
}
func (*RegData) Descriptor ¶
func (*RegData) GetAuthcodes ¶
func (*RegData) GetEnabled ¶
func (*RegData) GetRegTs ¶
func (m *RegData) GetRegTs() *google_protobuf.Timestamp
func (*RegData) GetRegTxid ¶
func (*RegData) ProtoMessage ¶
func (*RegData) ProtoMessage()
type RegGlobalData ¶
type RegGlobalData struct {
RegPrivilege string `protobuf:"bytes,1,opt,name=regPrivilege" json:"regPrivilege,omitempty"`
AdminPrivilege string `protobuf:"bytes,2,opt,name=adminPrivilege" json:"adminPrivilege,omitempty"`
Chaincodes map[int32]string `` /* 141-byte string literal not displayed */
DeployFlag []byte `protobuf:"bytes,10,opt,name=deployFlag,proto3" json:"deployFlag,omitempty"`
}
func (*RegGlobalData) Descriptor ¶
func (*RegGlobalData) Descriptor() ([]byte, []int)
func (*RegGlobalData) GetAdminPrivilege ¶
func (m *RegGlobalData) GetAdminPrivilege() string
func (*RegGlobalData) GetChaincodes ¶
func (m *RegGlobalData) GetChaincodes() map[int32]string
func (*RegGlobalData) GetDeployFlag ¶
func (m *RegGlobalData) GetDeployFlag() []byte
func (*RegGlobalData) GetRegPrivilege ¶
func (m *RegGlobalData) GetRegPrivilege() string
func (*RegGlobalData) ProtoMessage ¶
func (*RegGlobalData) ProtoMessage()
func (*RegGlobalData) Reset ¶
func (m *RegGlobalData) Reset()
func (*RegGlobalData) String ¶
func (m *RegGlobalData) String() string
type RegGlobalData_s ¶
type RegGlobalData_s struct {
// contains filtered or unexported fields
}
func (*RegGlobalData_s) GetObject ¶
func (n *RegGlobalData_s) GetObject() interface{}
func (*RegGlobalData_s) Load ¶
func (n *RegGlobalData_s) Load(interface{}) error
func (*RegGlobalData_s) Save ¶
func (n *RegGlobalData_s) Save() interface{}
func (*RegGlobalData_s) ToPB ¶
func (n *RegGlobalData_s) ToPB() *RegGlobalData
type RegPublicKey ¶
type RegPublicKey struct {
Region string `protobuf:"bytes,2,opt,name=region" json:"region,omitempty"`
PkBytes []byte `protobuf:"bytes,3,opt,name=pkBytes,proto3" json:"pkBytes,omitempty"`
}
user can register a public key only if it has own some pais
func (*RegPublicKey) Descriptor ¶
func (*RegPublicKey) Descriptor() ([]byte, []int)
func (*RegPublicKey) GetAddresses ¶
func (m *RegPublicKey) GetAddresses() []*tx.Address
func (*RegPublicKey) GetPkBytes ¶
func (m *RegPublicKey) GetPkBytes() []byte
func (*RegPublicKey) GetRegion ¶
func (m *RegPublicKey) GetRegion() string
func (*RegPublicKey) ProtoMessage ¶
func (*RegPublicKey) ProtoMessage()
func (*RegPublicKey) Reset ¶
func (m *RegPublicKey) Reset()
func (*RegPublicKey) String ¶
func (m *RegPublicKey) String() string
type RevokePublicKey ¶
type RevokePublicKey struct {
Pk *protos.PublicKey `protobuf:"bytes,1,opt,name=pk" json:"pk,omitempty"`
}
func (*RevokePublicKey) Descriptor ¶
func (*RevokePublicKey) Descriptor() ([]byte, []int)
func (*RevokePublicKey) GetPk ¶
func (m *RevokePublicKey) GetPk() *protos.PublicKey
func (*RevokePublicKey) ProtoMessage ¶
func (*RevokePublicKey) ProtoMessage()
func (*RevokePublicKey) Reset ¶
func (m *RevokePublicKey) Reset()
func (*RevokePublicKey) String ¶
func (m *RevokePublicKey) String() string
type Settings ¶
type Settings struct {
DebugMode bool `protobuf:"varint,1,opt,name=debugMode" json:"debugMode,omitempty"`
RegPrivilege string `protobuf:"bytes,2,opt,name=regPrivilege" json:"regPrivilege,omitempty"`
AdminPrivilege string `protobuf:"bytes,3,opt,name=adminPrivilege" json:"adminPrivilege,omitempty"`
}
func (*Settings) Descriptor ¶
func (*Settings) GetAdminPrivilege ¶
func (*Settings) GetDebugMode ¶
func (*Settings) GetRegPrivilege ¶
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.