Documentation ¶
Index ¶
- Variables
- func RegisterAdminServer(s *grpc.Server, srv AdminServer)
- func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)
- func RegisterDeliverServer(s *grpc.Server, srv DeliverServer)
- func RegisterEndorserServer(s *grpc.Server, srv EndorserServer)
- type ACLs
- func (*ACLs) Descriptor() ([]byte, []int)
- func (m *ACLs) GetAcls() map[string]*APIResource
- func (*ACLs) ProtoMessage()
- func (m *ACLs) Reset()
- func (m *ACLs) String() string
- func (m *ACLs) XXX_DiscardUnknown()
- func (m *ACLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ACLs) XXX_Merge(src proto.Message)
- func (m *ACLs) XXX_Size() int
- func (m *ACLs) XXX_Unmarshal(b []byte) error
- type APIResource
- func (*APIResource) Descriptor() ([]byte, []int)
- func (m *APIResource) GetPolicyRef() string
- func (*APIResource) ProtoMessage()
- func (m *APIResource) Reset()
- func (m *APIResource) String() string
- func (m *APIResource) XXX_DiscardUnknown()
- func (m *APIResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *APIResource) XXX_Merge(src proto.Message)
- func (m *APIResource) XXX_Size() int
- func (m *APIResource) XXX_Unmarshal(b []byte) error
- type AdminClient
- type AdminOperation
- func (*AdminOperation) Descriptor() ([]byte, []int)
- func (m *AdminOperation) GetContent() isAdminOperation_Content
- func (m *AdminOperation) GetLogReq() *LogLevelRequest
- func (m *AdminOperation) GetLogSpecReq() *LogSpecRequest
- func (*AdminOperation) ProtoMessage()
- func (m *AdminOperation) Reset()
- func (m *AdminOperation) String() string
- func (m *AdminOperation) XXX_DiscardUnknown()
- func (m *AdminOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AdminOperation) XXX_Merge(src proto.Message)
- func (*AdminOperation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *AdminOperation) XXX_Size() int
- func (m *AdminOperation) XXX_Unmarshal(b []byte) error
- type AdminOperation_LogReq
- type AdminOperation_LogSpecReq
- type AdminServer
- type AnchorPeer
- func (*AnchorPeer) Descriptor() ([]byte, []int)
- func (m *AnchorPeer) GetHost() string
- func (m *AnchorPeer) GetPort() int32
- func (*AnchorPeer) ProtoMessage()
- func (m *AnchorPeer) Reset()
- func (m *AnchorPeer) String() string
- func (m *AnchorPeer) XXX_DiscardUnknown()
- func (m *AnchorPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AnchorPeer) XXX_Merge(src proto.Message)
- func (m *AnchorPeer) XXX_Size() int
- func (m *AnchorPeer) XXX_Unmarshal(b []byte) error
- type AnchorPeers
- func (*AnchorPeers) Descriptor() ([]byte, []int)
- func (m *AnchorPeers) GetAnchorPeers() []*AnchorPeer
- func (*AnchorPeers) ProtoMessage()
- func (m *AnchorPeers) Reset()
- func (m *AnchorPeers) String() string
- func (m *AnchorPeers) XXX_DiscardUnknown()
- func (m *AnchorPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AnchorPeers) XXX_Merge(src proto.Message)
- func (m *AnchorPeers) XXX_Size() int
- func (m *AnchorPeers) XXX_Unmarshal(b []byte) error
- type ChaincodeAction
- func (*ChaincodeAction) Descriptor() ([]byte, []int)
- func (m *ChaincodeAction) GetChaincodeId() *ChaincodeID
- func (m *ChaincodeAction) GetEvents() []byte
- func (m *ChaincodeAction) GetResponse() *Response
- func (m *ChaincodeAction) GetResults() []byte
- func (m *ChaincodeAction) GetTokenExpectation() *token.TokenExpectation
- func (*ChaincodeAction) ProtoMessage()
- func (m *ChaincodeAction) Reset()
- func (ca *ChaincodeAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (ca *ChaincodeAction) StaticallyOpaqueFields() []string
- func (m *ChaincodeAction) String() string
- func (m *ChaincodeAction) XXX_DiscardUnknown()
- func (m *ChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeAction) XXX_Merge(src proto.Message)
- func (m *ChaincodeAction) XXX_Size() int
- func (m *ChaincodeAction) XXX_Unmarshal(b []byte) error
- type ChaincodeActionPayload
- func (*ChaincodeActionPayload) Descriptor() ([]byte, []int)
- func (m *ChaincodeActionPayload) GetAction() *ChaincodeEndorsedAction
- func (m *ChaincodeActionPayload) GetChaincodeProposalPayload() []byte
- func (*ChaincodeActionPayload) ProtoMessage()
- func (m *ChaincodeActionPayload) Reset()
- func (cap *ChaincodeActionPayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (cap *ChaincodeActionPayload) StaticallyOpaqueFields() []string
- func (m *ChaincodeActionPayload) String() string
- func (m *ChaincodeActionPayload) XXX_DiscardUnknown()
- func (m *ChaincodeActionPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeActionPayload) XXX_Merge(src proto.Message)
- func (m *ChaincodeActionPayload) XXX_Size() int
- func (m *ChaincodeActionPayload) XXX_Unmarshal(b []byte) error
- type ChaincodeDeploymentSpec
- func (cds *ChaincodeDeploymentSpec) Bytes() []byte
- func (cds *ChaincodeDeploymentSpec) CCType() string
- func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
- func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec
- func (m *ChaincodeDeploymentSpec) GetCodePackage() []byte
- func (m *ChaincodeDeploymentSpec) GetExecEnv() ChaincodeDeploymentSpec_ExecutionEnvironment
- func (cds *ChaincodeDeploymentSpec) Name() string
- func (cds *ChaincodeDeploymentSpec) Path() string
- func (*ChaincodeDeploymentSpec) ProtoMessage()
- func (m *ChaincodeDeploymentSpec) Reset()
- func (m *ChaincodeDeploymentSpec) String() string
- func (cds *ChaincodeDeploymentSpec) Version() string
- func (m *ChaincodeDeploymentSpec) XXX_DiscardUnknown()
- func (m *ChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeDeploymentSpec) XXX_Merge(src proto.Message)
- func (m *ChaincodeDeploymentSpec) XXX_Size() int
- func (m *ChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error
- type ChaincodeDeploymentSpec_ExecutionEnvironment
- type ChaincodeEndorsedAction
- func (*ChaincodeEndorsedAction) Descriptor() ([]byte, []int)
- func (m *ChaincodeEndorsedAction) GetEndorsements() []*Endorsement
- func (m *ChaincodeEndorsedAction) GetProposalResponsePayload() []byte
- func (*ChaincodeEndorsedAction) ProtoMessage()
- func (m *ChaincodeEndorsedAction) Reset()
- func (cae *ChaincodeEndorsedAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (cae *ChaincodeEndorsedAction) StaticallyOpaqueFields() []string
- func (m *ChaincodeEndorsedAction) String() string
- func (m *ChaincodeEndorsedAction) XXX_DiscardUnknown()
- func (m *ChaincodeEndorsedAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeEndorsedAction) XXX_Merge(src proto.Message)
- func (m *ChaincodeEndorsedAction) XXX_Size() int
- func (m *ChaincodeEndorsedAction) XXX_Unmarshal(b []byte) error
- type ChaincodeEndorsement
- func (*ChaincodeEndorsement) Descriptor() ([]byte, []int)
- func (m *ChaincodeEndorsement) GetName() string
- func (*ChaincodeEndorsement) ProtoMessage()
- func (m *ChaincodeEndorsement) Reset()
- func (m *ChaincodeEndorsement) String() string
- func (m *ChaincodeEndorsement) XXX_DiscardUnknown()
- func (m *ChaincodeEndorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeEndorsement) XXX_Merge(src proto.Message)
- func (m *ChaincodeEndorsement) XXX_Size() int
- func (m *ChaincodeEndorsement) XXX_Unmarshal(b []byte) error
- type ChaincodeEvent
- func (*ChaincodeEvent) Descriptor() ([]byte, []int)
- func (m *ChaincodeEvent) GetChaincodeId() string
- func (m *ChaincodeEvent) GetEventName() string
- func (m *ChaincodeEvent) GetPayload() []byte
- func (m *ChaincodeEvent) GetTxId() string
- func (*ChaincodeEvent) ProtoMessage()
- func (m *ChaincodeEvent) Reset()
- func (m *ChaincodeEvent) String() string
- func (m *ChaincodeEvent) XXX_DiscardUnknown()
- func (m *ChaincodeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeEvent) XXX_Merge(src proto.Message)
- func (m *ChaincodeEvent) XXX_Size() int
- func (m *ChaincodeEvent) XXX_Unmarshal(b []byte) error
- type ChaincodeHeaderExtension
- func (*ChaincodeHeaderExtension) Descriptor() ([]byte, []int)
- func (m *ChaincodeHeaderExtension) GetChaincodeId() *ChaincodeID
- func (m *ChaincodeHeaderExtension) GetPayloadVisibility() []byte
- func (*ChaincodeHeaderExtension) ProtoMessage()
- func (m *ChaincodeHeaderExtension) Reset()
- func (m *ChaincodeHeaderExtension) String() string
- func (m *ChaincodeHeaderExtension) XXX_DiscardUnknown()
- func (m *ChaincodeHeaderExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeHeaderExtension) XXX_Merge(src proto.Message)
- func (m *ChaincodeHeaderExtension) XXX_Size() int
- func (m *ChaincodeHeaderExtension) XXX_Unmarshal(b []byte) error
- type ChaincodeID
- func (*ChaincodeID) Descriptor() ([]byte, []int)
- func (m *ChaincodeID) GetName() string
- func (m *ChaincodeID) GetPath() string
- func (m *ChaincodeID) GetVersion() string
- func (*ChaincodeID) ProtoMessage()
- func (m *ChaincodeID) Reset()
- func (m *ChaincodeID) String() string
- func (m *ChaincodeID) XXX_DiscardUnknown()
- func (m *ChaincodeID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeID) XXX_Merge(src proto.Message)
- func (m *ChaincodeID) XXX_Size() int
- func (m *ChaincodeID) XXX_Unmarshal(b []byte) error
- type ChaincodeIdentifier
- func (*ChaincodeIdentifier) Descriptor() ([]byte, []int)
- func (m *ChaincodeIdentifier) GetHash() []byte
- func (m *ChaincodeIdentifier) GetVersion() string
- func (*ChaincodeIdentifier) ProtoMessage()
- func (m *ChaincodeIdentifier) Reset()
- func (m *ChaincodeIdentifier) String() string
- func (m *ChaincodeIdentifier) XXX_DiscardUnknown()
- func (m *ChaincodeIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeIdentifier) XXX_Merge(src proto.Message)
- func (m *ChaincodeIdentifier) XXX_Size() int
- func (m *ChaincodeIdentifier) XXX_Unmarshal(b []byte) error
- type ChaincodeInfo
- func (*ChaincodeInfo) Descriptor() ([]byte, []int)
- func (m *ChaincodeInfo) GetEscc() string
- func (m *ChaincodeInfo) GetId() []byte
- func (m *ChaincodeInfo) GetInput() string
- func (m *ChaincodeInfo) GetName() string
- func (m *ChaincodeInfo) GetPath() string
- func (m *ChaincodeInfo) GetVersion() string
- func (m *ChaincodeInfo) GetVscc() string
- func (*ChaincodeInfo) ProtoMessage()
- func (m *ChaincodeInfo) Reset()
- func (m *ChaincodeInfo) String() string
- func (m *ChaincodeInfo) XXX_DiscardUnknown()
- func (m *ChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeInfo) XXX_Merge(src proto.Message)
- func (m *ChaincodeInfo) XXX_Size() int
- func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error
- type ChaincodeInput
- func (*ChaincodeInput) Descriptor() ([]byte, []int)
- func (m *ChaincodeInput) GetArgs() [][]byte
- func (m *ChaincodeInput) GetDecorations() map[string][]byte
- func (*ChaincodeInput) ProtoMessage()
- func (m *ChaincodeInput) Reset()
- func (m *ChaincodeInput) String() string
- func (c *ChaincodeInput) UnmarshalJSON(b []byte) error
- func (m *ChaincodeInput) XXX_DiscardUnknown()
- func (m *ChaincodeInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeInput) XXX_Merge(src proto.Message)
- func (m *ChaincodeInput) XXX_Size() int
- func (m *ChaincodeInput) XXX_Unmarshal(b []byte) error
- type ChaincodeInvocationSpec
- func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int)
- func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec
- func (*ChaincodeInvocationSpec) ProtoMessage()
- func (m *ChaincodeInvocationSpec) Reset()
- func (m *ChaincodeInvocationSpec) String() string
- func (m *ChaincodeInvocationSpec) XXX_DiscardUnknown()
- func (m *ChaincodeInvocationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeInvocationSpec) XXX_Merge(src proto.Message)
- func (m *ChaincodeInvocationSpec) XXX_Size() int
- func (m *ChaincodeInvocationSpec) XXX_Unmarshal(b []byte) error
- type ChaincodeMessage
- func (*ChaincodeMessage) Descriptor() ([]byte, []int)
- func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent
- func (m *ChaincodeMessage) GetChannelId() string
- func (m *ChaincodeMessage) GetPayload() []byte
- func (m *ChaincodeMessage) GetProposal() *SignedProposal
- func (m *ChaincodeMessage) GetTimestamp() *timestamp.Timestamp
- func (m *ChaincodeMessage) GetTxid() string
- func (m *ChaincodeMessage) GetType() ChaincodeMessage_Type
- func (*ChaincodeMessage) ProtoMessage()
- func (m *ChaincodeMessage) Reset()
- func (m *ChaincodeMessage) String() string
- func (m *ChaincodeMessage) XXX_DiscardUnknown()
- func (m *ChaincodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeMessage) XXX_Merge(src proto.Message)
- func (m *ChaincodeMessage) XXX_Size() int
- func (m *ChaincodeMessage) XXX_Unmarshal(b []byte) error
- type ChaincodeMessage_Type
- type ChaincodeProposalPayload
- func (*ChaincodeProposalPayload) Descriptor() ([]byte, []int)
- func (m *ChaincodeProposalPayload) GetInput() []byte
- func (m *ChaincodeProposalPayload) GetTransientMap() map[string][]byte
- func (*ChaincodeProposalPayload) ProtoMessage()
- func (m *ChaincodeProposalPayload) Reset()
- func (cpp *ChaincodeProposalPayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (cpp *ChaincodeProposalPayload) StaticallyOpaqueFields() []string
- func (m *ChaincodeProposalPayload) String() string
- func (m *ChaincodeProposalPayload) XXX_DiscardUnknown()
- func (m *ChaincodeProposalPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeProposalPayload) XXX_Merge(src proto.Message)
- func (m *ChaincodeProposalPayload) XXX_Size() int
- func (m *ChaincodeProposalPayload) XXX_Unmarshal(b []byte) error
- type ChaincodeQueryResponse
- func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int)
- func (m *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo
- func (*ChaincodeQueryResponse) ProtoMessage()
- func (m *ChaincodeQueryResponse) Reset()
- func (m *ChaincodeQueryResponse) String() string
- func (m *ChaincodeQueryResponse) XXX_DiscardUnknown()
- func (m *ChaincodeQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeQueryResponse) XXX_Merge(src proto.Message)
- func (m *ChaincodeQueryResponse) XXX_Size() int
- func (m *ChaincodeQueryResponse) XXX_Unmarshal(b []byte) error
- type ChaincodeSpec
- func (cs *ChaincodeSpec) CCType() string
- func (*ChaincodeSpec) Descriptor() ([]byte, []int)
- func (m *ChaincodeSpec) GetChaincodeId() *ChaincodeID
- func (m *ChaincodeSpec) GetInput() *ChaincodeInput
- func (m *ChaincodeSpec) GetTimeout() int32
- func (m *ChaincodeSpec) GetType() ChaincodeSpec_Type
- func (cs *ChaincodeSpec) Name() string
- func (cs *ChaincodeSpec) Path() string
- func (*ChaincodeSpec) ProtoMessage()
- func (m *ChaincodeSpec) Reset()
- func (m *ChaincodeSpec) String() string
- func (cs *ChaincodeSpec) Version() string
- func (m *ChaincodeSpec) XXX_DiscardUnknown()
- func (m *ChaincodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeSpec) XXX_Merge(src proto.Message)
- func (m *ChaincodeSpec) XXX_Size() int
- func (m *ChaincodeSpec) XXX_Unmarshal(b []byte) error
- type ChaincodeSpec_Type
- type ChaincodeSupportClient
- type ChaincodeSupportServer
- type ChaincodeSupport_RegisterClient
- type ChaincodeSupport_RegisterServer
- type ChaincodeValidation
- func (*ChaincodeValidation) Descriptor() ([]byte, []int)
- func (m *ChaincodeValidation) GetArgument() []byte
- func (m *ChaincodeValidation) GetName() string
- func (*ChaincodeValidation) ProtoMessage()
- func (m *ChaincodeValidation) Reset()
- func (m *ChaincodeValidation) String() string
- func (m *ChaincodeValidation) XXX_DiscardUnknown()
- func (m *ChaincodeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChaincodeValidation) XXX_Merge(src proto.Message)
- func (m *ChaincodeValidation) XXX_Size() int
- func (m *ChaincodeValidation) XXX_Unmarshal(b []byte) error
- type ChannelInfo
- func (*ChannelInfo) Descriptor() ([]byte, []int)
- func (m *ChannelInfo) GetChannelId() string
- func (*ChannelInfo) ProtoMessage()
- func (m *ChannelInfo) Reset()
- func (m *ChannelInfo) String() string
- func (m *ChannelInfo) XXX_DiscardUnknown()
- func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChannelInfo) XXX_Merge(src proto.Message)
- func (m *ChannelInfo) XXX_Size() int
- func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
- type ChannelQueryResponse
- func (*ChannelQueryResponse) Descriptor() ([]byte, []int)
- func (m *ChannelQueryResponse) GetChannels() []*ChannelInfo
- func (*ChannelQueryResponse) ProtoMessage()
- func (m *ChannelQueryResponse) Reset()
- func (m *ChannelQueryResponse) String() string
- func (m *ChannelQueryResponse) XXX_DiscardUnknown()
- func (m *ChannelQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChannelQueryResponse) XXX_Merge(src proto.Message)
- func (m *ChannelQueryResponse) XXX_Size() int
- func (m *ChannelQueryResponse) XXX_Unmarshal(b []byte) error
- type ConfidentialityLevel
- type ConfigTree
- func (*ConfigTree) Descriptor() ([]byte, []int)
- func (m *ConfigTree) GetChannelConfig() *common.Config
- func (m *ConfigTree) GetResourcesConfig() *common.Config
- func (*ConfigTree) ProtoMessage()
- func (m *ConfigTree) Reset()
- func (m *ConfigTree) String() string
- func (m *ConfigTree) XXX_DiscardUnknown()
- func (m *ConfigTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConfigTree) XXX_Merge(src proto.Message)
- func (m *ConfigTree) XXX_Size() int
- func (m *ConfigTree) XXX_Unmarshal(b []byte) error
- type DelState
- func (*DelState) Descriptor() ([]byte, []int)
- func (m *DelState) GetCollection() string
- func (m *DelState) GetKey() string
- func (*DelState) ProtoMessage()
- func (m *DelState) Reset()
- func (m *DelState) String() string
- func (m *DelState) XXX_DiscardUnknown()
- func (m *DelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DelState) XXX_Merge(src proto.Message)
- func (m *DelState) XXX_Size() int
- func (m *DelState) XXX_Unmarshal(b []byte) error
- type DeliverClient
- type DeliverResponse
- func (*DeliverResponse) Descriptor() ([]byte, []int)
- func (m *DeliverResponse) GetBlock() *common.Block
- func (m *DeliverResponse) GetFilteredBlock() *FilteredBlock
- func (m *DeliverResponse) GetStatus() common.Status
- func (m *DeliverResponse) GetType() isDeliverResponse_Type
- func (*DeliverResponse) ProtoMessage()
- func (m *DeliverResponse) Reset()
- func (m *DeliverResponse) String() string
- func (m *DeliverResponse) XXX_DiscardUnknown()
- func (m *DeliverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeliverResponse) XXX_Merge(src proto.Message)
- func (*DeliverResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *DeliverResponse) XXX_Size() int
- func (m *DeliverResponse) XXX_Unmarshal(b []byte) error
- type DeliverResponse_Block
- type DeliverResponse_FilteredBlock
- type DeliverResponse_Status
- type DeliverServer
- type Deliver_DeliverClient
- type Deliver_DeliverFilteredClient
- type Deliver_DeliverFilteredServer
- type Deliver_DeliverServer
- type DynamicApplicationConfigValue
- type DynamicApplicationGroup
- type DynamicApplicationGroupFactory
- type DynamicApplicationOrgConfigValue
- type DynamicApplicationOrgGroup
- type Endorsement
- func (*Endorsement) Descriptor() ([]byte, []int)
- func (m *Endorsement) GetEndorser() []byte
- func (m *Endorsement) GetSignature() []byte
- func (*Endorsement) ProtoMessage()
- func (m *Endorsement) Reset()
- func (m *Endorsement) String() string
- func (m *Endorsement) XXX_DiscardUnknown()
- func (m *Endorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Endorsement) XXX_Merge(src proto.Message)
- func (m *Endorsement) XXX_Size() int
- func (m *Endorsement) XXX_Unmarshal(b []byte) error
- type EndorserClient
- type EndorserServer
- type FilteredBlock
- func (*FilteredBlock) Descriptor() ([]byte, []int)
- func (m *FilteredBlock) GetChannelId() string
- func (m *FilteredBlock) GetFilteredTransactions() []*FilteredTransaction
- func (m *FilteredBlock) GetNumber() uint64
- func (*FilteredBlock) ProtoMessage()
- func (m *FilteredBlock) Reset()
- func (m *FilteredBlock) String() string
- func (m *FilteredBlock) XXX_DiscardUnknown()
- func (m *FilteredBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FilteredBlock) XXX_Merge(src proto.Message)
- func (m *FilteredBlock) XXX_Size() int
- func (m *FilteredBlock) XXX_Unmarshal(b []byte) error
- type FilteredChaincodeAction
- func (*FilteredChaincodeAction) Descriptor() ([]byte, []int)
- func (m *FilteredChaincodeAction) GetChaincodeEvent() *ChaincodeEvent
- func (*FilteredChaincodeAction) ProtoMessage()
- func (m *FilteredChaincodeAction) Reset()
- func (m *FilteredChaincodeAction) String() string
- func (m *FilteredChaincodeAction) XXX_DiscardUnknown()
- func (m *FilteredChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FilteredChaincodeAction) XXX_Merge(src proto.Message)
- func (m *FilteredChaincodeAction) XXX_Size() int
- func (m *FilteredChaincodeAction) XXX_Unmarshal(b []byte) error
- type FilteredTransaction
- func (*FilteredTransaction) Descriptor() ([]byte, []int)
- func (m *FilteredTransaction) GetData() isFilteredTransaction_Data
- func (m *FilteredTransaction) GetTransactionActions() *FilteredTransactionActions
- func (m *FilteredTransaction) GetTxValidationCode() TxValidationCode
- func (m *FilteredTransaction) GetTxid() string
- func (m *FilteredTransaction) GetType() common.HeaderType
- func (*FilteredTransaction) ProtoMessage()
- func (m *FilteredTransaction) Reset()
- func (m *FilteredTransaction) String() string
- func (m *FilteredTransaction) XXX_DiscardUnknown()
- func (m *FilteredTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FilteredTransaction) XXX_Merge(src proto.Message)
- func (*FilteredTransaction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *FilteredTransaction) XXX_Size() int
- func (m *FilteredTransaction) XXX_Unmarshal(b []byte) error
- type FilteredTransactionActions
- func (*FilteredTransactionActions) Descriptor() ([]byte, []int)
- func (m *FilteredTransactionActions) GetChaincodeActions() []*FilteredChaincodeAction
- func (*FilteredTransactionActions) ProtoMessage()
- func (m *FilteredTransactionActions) Reset()
- func (m *FilteredTransactionActions) String() string
- func (m *FilteredTransactionActions) XXX_DiscardUnknown()
- func (m *FilteredTransactionActions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FilteredTransactionActions) XXX_Merge(src proto.Message)
- func (m *FilteredTransactionActions) XXX_Size() int
- func (m *FilteredTransactionActions) XXX_Unmarshal(b []byte) error
- type FilteredTransaction_TransactionActions
- type GetHistoryForKey
- func (*GetHistoryForKey) Descriptor() ([]byte, []int)
- func (m *GetHistoryForKey) GetKey() string
- func (*GetHistoryForKey) ProtoMessage()
- func (m *GetHistoryForKey) Reset()
- func (m *GetHistoryForKey) String() string
- func (m *GetHistoryForKey) XXX_DiscardUnknown()
- func (m *GetHistoryForKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetHistoryForKey) XXX_Merge(src proto.Message)
- func (m *GetHistoryForKey) XXX_Size() int
- func (m *GetHistoryForKey) XXX_Unmarshal(b []byte) error
- type GetQueryResult
- func (*GetQueryResult) Descriptor() ([]byte, []int)
- func (m *GetQueryResult) GetCollection() string
- func (m *GetQueryResult) GetMetadata() []byte
- func (m *GetQueryResult) GetQuery() string
- func (*GetQueryResult) ProtoMessage()
- func (m *GetQueryResult) Reset()
- func (m *GetQueryResult) String() string
- func (m *GetQueryResult) XXX_DiscardUnknown()
- func (m *GetQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetQueryResult) XXX_Merge(src proto.Message)
- func (m *GetQueryResult) XXX_Size() int
- func (m *GetQueryResult) XXX_Unmarshal(b []byte) error
- type GetState
- func (*GetState) Descriptor() ([]byte, []int)
- func (m *GetState) GetCollection() string
- func (m *GetState) GetKey() string
- func (*GetState) ProtoMessage()
- func (m *GetState) Reset()
- func (m *GetState) String() string
- func (m *GetState) XXX_DiscardUnknown()
- func (m *GetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetState) XXX_Merge(src proto.Message)
- func (m *GetState) XXX_Size() int
- func (m *GetState) XXX_Unmarshal(b []byte) error
- type GetStateByRange
- func (*GetStateByRange) Descriptor() ([]byte, []int)
- func (m *GetStateByRange) GetCollection() string
- func (m *GetStateByRange) GetEndKey() string
- func (m *GetStateByRange) GetMetadata() []byte
- func (m *GetStateByRange) GetStartKey() string
- func (*GetStateByRange) ProtoMessage()
- func (m *GetStateByRange) Reset()
- func (m *GetStateByRange) String() string
- func (m *GetStateByRange) XXX_DiscardUnknown()
- func (m *GetStateByRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetStateByRange) XXX_Merge(src proto.Message)
- func (m *GetStateByRange) XXX_Size() int
- func (m *GetStateByRange) XXX_Unmarshal(b []byte) error
- type GetStateMetadata
- func (*GetStateMetadata) Descriptor() ([]byte, []int)
- func (m *GetStateMetadata) GetCollection() string
- func (m *GetStateMetadata) GetKey() string
- func (*GetStateMetadata) ProtoMessage()
- func (m *GetStateMetadata) Reset()
- func (m *GetStateMetadata) String() string
- func (m *GetStateMetadata) XXX_DiscardUnknown()
- func (m *GetStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetStateMetadata) XXX_Merge(src proto.Message)
- func (m *GetStateMetadata) XXX_Size() int
- func (m *GetStateMetadata) XXX_Unmarshal(b []byte) error
- type LifecycleEvent
- func (*LifecycleEvent) Descriptor() ([]byte, []int)
- func (m *LifecycleEvent) GetChaincodeName() string
- func (*LifecycleEvent) ProtoMessage()
- func (m *LifecycleEvent) Reset()
- func (m *LifecycleEvent) String() string
- func (m *LifecycleEvent) XXX_DiscardUnknown()
- func (m *LifecycleEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LifecycleEvent) XXX_Merge(src proto.Message)
- func (m *LifecycleEvent) XXX_Size() int
- func (m *LifecycleEvent) XXX_Unmarshal(b []byte) error
- type LogLevelRequest
- func (*LogLevelRequest) Descriptor() ([]byte, []int)
- func (m *LogLevelRequest) GetLogLevel() string
- func (m *LogLevelRequest) GetLogModule() string
- func (*LogLevelRequest) ProtoMessage()
- func (m *LogLevelRequest) Reset()
- func (m *LogLevelRequest) String() string
- func (m *LogLevelRequest) XXX_DiscardUnknown()
- func (m *LogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LogLevelRequest) XXX_Merge(src proto.Message)
- func (m *LogLevelRequest) XXX_Size() int
- func (m *LogLevelRequest) XXX_Unmarshal(b []byte) error
- type LogLevelResponse
- func (*LogLevelResponse) Descriptor() ([]byte, []int)
- func (m *LogLevelResponse) GetLogLevel() string
- func (m *LogLevelResponse) GetLogModule() string
- func (*LogLevelResponse) ProtoMessage()
- func (m *LogLevelResponse) Reset()
- func (m *LogLevelResponse) String() string
- func (m *LogLevelResponse) XXX_DiscardUnknown()
- func (m *LogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LogLevelResponse) XXX_Merge(src proto.Message)
- func (m *LogLevelResponse) XXX_Size() int
- func (m *LogLevelResponse) XXX_Unmarshal(b []byte) error
- type LogSpecRequest
- func (*LogSpecRequest) Descriptor() ([]byte, []int)
- func (m *LogSpecRequest) GetLogSpec() string
- func (*LogSpecRequest) ProtoMessage()
- func (m *LogSpecRequest) Reset()
- func (m *LogSpecRequest) String() string
- func (m *LogSpecRequest) XXX_DiscardUnknown()
- func (m *LogSpecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LogSpecRequest) XXX_Merge(src proto.Message)
- func (m *LogSpecRequest) XXX_Size() int
- func (m *LogSpecRequest) XXX_Unmarshal(b []byte) error
- type LogSpecResponse
- func (*LogSpecResponse) Descriptor() ([]byte, []int)
- func (m *LogSpecResponse) GetError() string
- func (m *LogSpecResponse) GetLogSpec() string
- func (*LogSpecResponse) ProtoMessage()
- func (m *LogSpecResponse) Reset()
- func (m *LogSpecResponse) String() string
- func (m *LogSpecResponse) XXX_DiscardUnknown()
- func (m *LogSpecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LogSpecResponse) XXX_Merge(src proto.Message)
- func (m *LogSpecResponse) XXX_Size() int
- func (m *LogSpecResponse) XXX_Unmarshal(b []byte) error
- type MetaDataKeys
- type PeerEndpoint
- func (*PeerEndpoint) Descriptor() ([]byte, []int)
- func (m *PeerEndpoint) GetAddress() string
- func (m *PeerEndpoint) GetId() *PeerID
- func (*PeerEndpoint) ProtoMessage()
- func (m *PeerEndpoint) Reset()
- func (m *PeerEndpoint) String() string
- func (m *PeerEndpoint) XXX_DiscardUnknown()
- func (m *PeerEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PeerEndpoint) XXX_Merge(src proto.Message)
- func (m *PeerEndpoint) XXX_Size() int
- func (m *PeerEndpoint) XXX_Unmarshal(b []byte) error
- type PeerID
- func (*PeerID) Descriptor() ([]byte, []int)
- func (m *PeerID) GetName() string
- func (*PeerID) ProtoMessage()
- func (m *PeerID) Reset()
- func (m *PeerID) String() string
- func (m *PeerID) XXX_DiscardUnknown()
- func (m *PeerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PeerID) XXX_Merge(src proto.Message)
- func (m *PeerID) XXX_Size() int
- func (m *PeerID) XXX_Unmarshal(b []byte) error
- type ProcessedTransaction
- func (*ProcessedTransaction) Descriptor() ([]byte, []int)
- func (m *ProcessedTransaction) GetTransactionEnvelope() *common.Envelope
- func (m *ProcessedTransaction) GetValidationCode() int32
- func (*ProcessedTransaction) ProtoMessage()
- func (m *ProcessedTransaction) Reset()
- func (m *ProcessedTransaction) String() string
- func (m *ProcessedTransaction) XXX_DiscardUnknown()
- func (m *ProcessedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProcessedTransaction) XXX_Merge(src proto.Message)
- func (m *ProcessedTransaction) XXX_Size() int
- func (m *ProcessedTransaction) XXX_Unmarshal(b []byte) error
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetExtension() []byte
- func (m *Proposal) GetHeader() []byte
- func (m *Proposal) GetPayload() []byte
- func (*Proposal) ProtoMessage()
- func (m *Proposal) Reset()
- func (m *Proposal) String() string
- func (m *Proposal) XXX_DiscardUnknown()
- func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Proposal) XXX_Merge(src proto.Message)
- func (m *Proposal) XXX_Size() int
- func (m *Proposal) XXX_Unmarshal(b []byte) error
- type ProposalResponse
- func (*ProposalResponse) Descriptor() ([]byte, []int)
- func (m *ProposalResponse) GetEndorsement() *Endorsement
- func (m *ProposalResponse) GetPayload() []byte
- func (m *ProposalResponse) GetResponse() *Response
- func (m *ProposalResponse) GetTimestamp() *timestamp.Timestamp
- func (m *ProposalResponse) GetVersion() int32
- func (*ProposalResponse) ProtoMessage()
- func (m *ProposalResponse) Reset()
- func (m *ProposalResponse) String() string
- func (m *ProposalResponse) XXX_DiscardUnknown()
- func (m *ProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProposalResponse) XXX_Merge(src proto.Message)
- func (m *ProposalResponse) XXX_Size() int
- func (m *ProposalResponse) XXX_Unmarshal(b []byte) error
- type ProposalResponsePayload
- func (*ProposalResponsePayload) Descriptor() ([]byte, []int)
- func (m *ProposalResponsePayload) GetExtension() []byte
- func (m *ProposalResponsePayload) GetProposalHash() []byte
- func (*ProposalResponsePayload) ProtoMessage()
- func (m *ProposalResponsePayload) Reset()
- func (ppr *ProposalResponsePayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (ppr *ProposalResponsePayload) StaticallyOpaqueFields() []string
- func (m *ProposalResponsePayload) String() string
- func (m *ProposalResponsePayload) XXX_DiscardUnknown()
- func (m *ProposalResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProposalResponsePayload) XXX_Merge(src proto.Message)
- func (m *ProposalResponsePayload) XXX_Size() int
- func (m *ProposalResponsePayload) XXX_Unmarshal(b []byte) error
- type PutState
- func (*PutState) Descriptor() ([]byte, []int)
- func (m *PutState) GetCollection() string
- func (m *PutState) GetKey() string
- func (m *PutState) GetValue() []byte
- func (*PutState) ProtoMessage()
- func (m *PutState) Reset()
- func (m *PutState) String() string
- func (m *PutState) XXX_DiscardUnknown()
- func (m *PutState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PutState) XXX_Merge(src proto.Message)
- func (m *PutState) XXX_Size() int
- func (m *PutState) XXX_Unmarshal(b []byte) error
- type PutStateMetadata
- func (*PutStateMetadata) Descriptor() ([]byte, []int)
- func (m *PutStateMetadata) GetCollection() string
- func (m *PutStateMetadata) GetKey() string
- func (m *PutStateMetadata) GetMetadata() *StateMetadata
- func (*PutStateMetadata) ProtoMessage()
- func (m *PutStateMetadata) Reset()
- func (m *PutStateMetadata) String() string
- func (m *PutStateMetadata) XXX_DiscardUnknown()
- func (m *PutStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PutStateMetadata) XXX_Merge(src proto.Message)
- func (m *PutStateMetadata) XXX_Size() int
- func (m *PutStateMetadata) XXX_Unmarshal(b []byte) error
- type QueryMetadata
- func (*QueryMetadata) Descriptor() ([]byte, []int)
- func (m *QueryMetadata) GetBookmark() string
- func (m *QueryMetadata) GetPageSize() int32
- func (*QueryMetadata) ProtoMessage()
- func (m *QueryMetadata) Reset()
- func (m *QueryMetadata) String() string
- func (m *QueryMetadata) XXX_DiscardUnknown()
- func (m *QueryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryMetadata) XXX_Merge(src proto.Message)
- func (m *QueryMetadata) XXX_Size() int
- func (m *QueryMetadata) XXX_Unmarshal(b []byte) error
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)
- func (m *QueryResponse) GetHasMore() bool
- func (m *QueryResponse) GetId() string
- func (m *QueryResponse) GetMetadata() []byte
- func (m *QueryResponse) GetResults() []*QueryResultBytes
- func (*QueryResponse) ProtoMessage()
- func (m *QueryResponse) Reset()
- func (m *QueryResponse) String() string
- func (m *QueryResponse) XXX_DiscardUnknown()
- func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryResponse) XXX_Merge(src proto.Message)
- func (m *QueryResponse) XXX_Size() int
- func (m *QueryResponse) XXX_Unmarshal(b []byte) error
- type QueryResponseMetadata
- func (*QueryResponseMetadata) Descriptor() ([]byte, []int)
- func (m *QueryResponseMetadata) GetBookmark() string
- func (m *QueryResponseMetadata) GetFetchedRecordsCount() int32
- func (*QueryResponseMetadata) ProtoMessage()
- func (m *QueryResponseMetadata) Reset()
- func (m *QueryResponseMetadata) String() string
- func (m *QueryResponseMetadata) XXX_DiscardUnknown()
- func (m *QueryResponseMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryResponseMetadata) XXX_Merge(src proto.Message)
- func (m *QueryResponseMetadata) XXX_Size() int
- func (m *QueryResponseMetadata) XXX_Unmarshal(b []byte) error
- type QueryResultBytes
- func (*QueryResultBytes) Descriptor() ([]byte, []int)
- func (m *QueryResultBytes) GetResultBytes() []byte
- func (*QueryResultBytes) ProtoMessage()
- func (m *QueryResultBytes) Reset()
- func (m *QueryResultBytes) String() string
- func (m *QueryResultBytes) XXX_DiscardUnknown()
- func (m *QueryResultBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryResultBytes) XXX_Merge(src proto.Message)
- func (m *QueryResultBytes) XXX_Size() int
- func (m *QueryResultBytes) XXX_Unmarshal(b []byte) error
- type QueryStateClose
- func (*QueryStateClose) Descriptor() ([]byte, []int)
- func (m *QueryStateClose) GetId() string
- func (*QueryStateClose) ProtoMessage()
- func (m *QueryStateClose) Reset()
- func (m *QueryStateClose) String() string
- func (m *QueryStateClose) XXX_DiscardUnknown()
- func (m *QueryStateClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryStateClose) XXX_Merge(src proto.Message)
- func (m *QueryStateClose) XXX_Size() int
- func (m *QueryStateClose) XXX_Unmarshal(b []byte) error
- type QueryStateNext
- func (*QueryStateNext) Descriptor() ([]byte, []int)
- func (m *QueryStateNext) GetId() string
- func (*QueryStateNext) ProtoMessage()
- func (m *QueryStateNext) Reset()
- func (m *QueryStateNext) String() string
- func (m *QueryStateNext) XXX_DiscardUnknown()
- func (m *QueryStateNext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryStateNext) XXX_Merge(src proto.Message)
- func (m *QueryStateNext) XXX_Size() int
- func (m *QueryStateNext) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetMessage() string
- func (m *Response) GetPayload() []byte
- func (m *Response) GetStatus() int32
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type ServerStatus
- func (*ServerStatus) Descriptor() ([]byte, []int)
- func (m *ServerStatus) GetStatus() ServerStatus_StatusCode
- func (*ServerStatus) ProtoMessage()
- func (m *ServerStatus) Reset()
- func (m *ServerStatus) String() string
- func (m *ServerStatus) XXX_DiscardUnknown()
- func (m *ServerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServerStatus) XXX_Merge(src proto.Message)
- func (m *ServerStatus) XXX_Size() int
- func (m *ServerStatus) XXX_Unmarshal(b []byte) error
- type ServerStatus_StatusCode
- type SignedChaincodeDeploymentSpec
- func (*SignedChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
- func (m *SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec() []byte
- func (m *SignedChaincodeDeploymentSpec) GetInstantiationPolicy() []byte
- func (m *SignedChaincodeDeploymentSpec) GetOwnerEndorsements() []*Endorsement
- func (*SignedChaincodeDeploymentSpec) ProtoMessage()
- func (m *SignedChaincodeDeploymentSpec) Reset()
- func (m *SignedChaincodeDeploymentSpec) String() string
- func (m *SignedChaincodeDeploymentSpec) XXX_DiscardUnknown()
- func (m *SignedChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedChaincodeDeploymentSpec) XXX_Merge(src proto.Message)
- func (m *SignedChaincodeDeploymentSpec) XXX_Size() int
- func (m *SignedChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error
- type SignedProposal
- func (*SignedProposal) Descriptor() ([]byte, []int)
- func (m *SignedProposal) GetProposalBytes() []byte
- func (m *SignedProposal) GetSignature() []byte
- func (*SignedProposal) ProtoMessage()
- func (m *SignedProposal) Reset()
- func (m *SignedProposal) String() string
- func (m *SignedProposal) XXX_DiscardUnknown()
- func (m *SignedProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedProposal) XXX_Merge(src proto.Message)
- func (m *SignedProposal) XXX_Size() int
- func (m *SignedProposal) XXX_Unmarshal(b []byte) error
- type SignedTransaction
- func (*SignedTransaction) Descriptor() ([]byte, []int)
- func (m *SignedTransaction) GetSignature() []byte
- func (m *SignedTransaction) GetTransactionBytes() []byte
- func (*SignedTransaction) ProtoMessage()
- func (m *SignedTransaction) Reset()
- func (m *SignedTransaction) String() string
- func (m *SignedTransaction) XXX_DiscardUnknown()
- func (m *SignedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SignedTransaction) XXX_Merge(src proto.Message)
- func (m *SignedTransaction) XXX_Size() int
- func (m *SignedTransaction) XXX_Unmarshal(b []byte) error
- type StateMetadata
- func (*StateMetadata) Descriptor() ([]byte, []int)
- func (m *StateMetadata) GetMetakey() string
- func (m *StateMetadata) GetValue() []byte
- func (*StateMetadata) ProtoMessage()
- func (m *StateMetadata) Reset()
- func (m *StateMetadata) String() string
- func (m *StateMetadata) XXX_DiscardUnknown()
- func (m *StateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StateMetadata) XXX_Merge(src proto.Message)
- func (m *StateMetadata) XXX_Size() int
- func (m *StateMetadata) XXX_Unmarshal(b []byte) error
- type StateMetadataResult
- func (*StateMetadataResult) Descriptor() ([]byte, []int)
- func (m *StateMetadataResult) GetEntries() []*StateMetadata
- func (*StateMetadataResult) ProtoMessage()
- func (m *StateMetadataResult) Reset()
- func (m *StateMetadataResult) String() string
- func (m *StateMetadataResult) XXX_DiscardUnknown()
- func (m *StateMetadataResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StateMetadataResult) XXX_Merge(src proto.Message)
- func (m *StateMetadataResult) XXX_Size() int
- func (m *StateMetadataResult) XXX_Unmarshal(b []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetActions() []*TransactionAction
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) String() string
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
- type TransactionAction
- func (*TransactionAction) Descriptor() ([]byte, []int)
- func (m *TransactionAction) GetHeader() []byte
- func (m *TransactionAction) GetPayload() []byte
- func (*TransactionAction) ProtoMessage()
- func (m *TransactionAction) Reset()
- func (ta *TransactionAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
- func (ta *TransactionAction) StaticallyOpaqueFields() []string
- func (m *TransactionAction) String() string
- func (m *TransactionAction) XXX_DiscardUnknown()
- func (m *TransactionAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TransactionAction) XXX_Merge(src proto.Message)
- func (m *TransactionAction) XXX_Size() int
- func (m *TransactionAction) XXX_Unmarshal(b []byte) error
- type TxValidationCode
- type VSCCArgs
- func (*VSCCArgs) Descriptor() ([]byte, []int)
- func (m *VSCCArgs) GetEndorsementPolicyRef() string
- func (*VSCCArgs) ProtoMessage()
- func (m *VSCCArgs) Reset()
- func (m *VSCCArgs) String() string
- func (m *VSCCArgs) XXX_DiscardUnknown()
- func (m *VSCCArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VSCCArgs) XXX_Merge(src proto.Message)
- func (m *VSCCArgs) XXX_Size() int
- func (m *VSCCArgs) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ChaincodeDeploymentSpec_ExecutionEnvironment_name = map[int32]string{
0: "DOCKER",
1: "SYSTEM",
}
var ChaincodeDeploymentSpec_ExecutionEnvironment_value = map[string]int32{
"DOCKER": 0,
"SYSTEM": 1,
}
var ChaincodeMessage_Type_name = map[int32]string{
0: "UNDEFINED",
1: "REGISTER",
2: "REGISTERED",
3: "INIT",
4: "READY",
5: "TRANSACTION",
6: "COMPLETED",
7: "ERROR",
8: "GET_STATE",
9: "PUT_STATE",
10: "DEL_STATE",
11: "INVOKE_CHAINCODE",
13: "RESPONSE",
14: "GET_STATE_BY_RANGE",
15: "GET_QUERY_RESULT",
16: "QUERY_STATE_NEXT",
17: "QUERY_STATE_CLOSE",
18: "KEEPALIVE",
19: "GET_HISTORY_FOR_KEY",
20: "GET_STATE_METADATA",
21: "PUT_STATE_METADATA",
}
var ChaincodeMessage_Type_value = map[string]int32{
"UNDEFINED": 0,
"REGISTER": 1,
"REGISTERED": 2,
"INIT": 3,
"READY": 4,
"TRANSACTION": 5,
"COMPLETED": 6,
"ERROR": 7,
"GET_STATE": 8,
"PUT_STATE": 9,
"DEL_STATE": 10,
"INVOKE_CHAINCODE": 11,
"RESPONSE": 13,
"GET_STATE_BY_RANGE": 14,
"GET_QUERY_RESULT": 15,
"QUERY_STATE_NEXT": 16,
"QUERY_STATE_CLOSE": 17,
"KEEPALIVE": 18,
"GET_HISTORY_FOR_KEY": 19,
"GET_STATE_METADATA": 20,
"PUT_STATE_METADATA": 21,
}
var ChaincodeSpec_Type_name = map[int32]string{
0: "UNDEFINED",
1: "GOLANG",
2: "NODE",
3: "CAR",
4: "JAVA",
}
var ChaincodeSpec_Type_value = map[string]int32{
"UNDEFINED": 0,
"GOLANG": 1,
"NODE": 2,
"CAR": 3,
"JAVA": 4,
}
var ConfidentialityLevel_name = map[int32]string{
0: "PUBLIC",
1: "CONFIDENTIAL",
}
var ConfidentialityLevel_value = map[string]int32{
"PUBLIC": 0,
"CONFIDENTIAL": 1,
}
var MetaDataKeys_name = map[int32]string{
0: "VALIDATION_PARAMETER",
}
var MetaDataKeys_value = map[string]int32{
"VALIDATION_PARAMETER": 0,
}
var ServerStatus_StatusCode_name = map[int32]string{
0: "UNDEFINED",
1: "STARTED",
2: "STOPPED",
3: "PAUSED",
4: "ERROR",
5: "UNKNOWN",
}
var ServerStatus_StatusCode_value = map[string]int32{
"UNDEFINED": 0,
"STARTED": 1,
"STOPPED": 2,
"PAUSED": 3,
"ERROR": 4,
"UNKNOWN": 5,
}
var TxValidationCode_name = map[int32]string{
0: "VALID",
1: "NIL_ENVELOPE",
2: "BAD_PAYLOAD",
3: "BAD_COMMON_HEADER",
4: "BAD_CREATOR_SIGNATURE",
5: "INVALID_ENDORSER_TRANSACTION",
6: "INVALID_CONFIG_TRANSACTION",
7: "UNSUPPORTED_TX_PAYLOAD",
8: "BAD_PROPOSAL_TXID",
9: "DUPLICATE_TXID",
10: "ENDORSEMENT_POLICY_FAILURE",
11: "MVCC_READ_CONFLICT",
12: "PHANTOM_READ_CONFLICT",
13: "UNKNOWN_TX_TYPE",
14: "TARGET_CHAIN_NOT_FOUND",
15: "MARSHAL_TX_ERROR",
16: "NIL_TXACTION",
17: "EXPIRED_CHAINCODE",
18: "CHAINCODE_VERSION_CONFLICT",
19: "BAD_HEADER_EXTENSION",
20: "BAD_CHANNEL_HEADER",
21: "BAD_RESPONSE_PAYLOAD",
22: "BAD_RWSET",
23: "ILLEGAL_WRITESET",
24: "INVALID_WRITESET",
254: "NOT_VALIDATED",
255: "INVALID_OTHER_REASON",
}
var TxValidationCode_value = map[string]int32{
"VALID": 0,
"NIL_ENVELOPE": 1,
"BAD_PAYLOAD": 2,
"BAD_COMMON_HEADER": 3,
"BAD_CREATOR_SIGNATURE": 4,
"INVALID_ENDORSER_TRANSACTION": 5,
"INVALID_CONFIG_TRANSACTION": 6,
"UNSUPPORTED_TX_PAYLOAD": 7,
"BAD_PROPOSAL_TXID": 8,
"DUPLICATE_TXID": 9,
"ENDORSEMENT_POLICY_FAILURE": 10,
"MVCC_READ_CONFLICT": 11,
"PHANTOM_READ_CONFLICT": 12,
"UNKNOWN_TX_TYPE": 13,
"TARGET_CHAIN_NOT_FOUND": 14,
"MARSHAL_TX_ERROR": 15,
"NIL_TXACTION": 16,
"EXPIRED_CHAINCODE": 17,
"CHAINCODE_VERSION_CONFLICT": 18,
"BAD_HEADER_EXTENSION": 19,
"BAD_CHANNEL_HEADER": 20,
"BAD_RESPONSE_PAYLOAD": 21,
"BAD_RWSET": 22,
"ILLEGAL_WRITESET": 23,
"INVALID_WRITESET": 24,
"NOT_VALIDATED": 254,
"INVALID_OTHER_REASON": 255,
}
Functions ¶
func RegisterAdminServer ¶
func RegisterAdminServer(s *grpc.Server, srv AdminServer)
func RegisterChaincodeSupportServer ¶
func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer)
func RegisterDeliverServer ¶
func RegisterDeliverServer(s *grpc.Server, srv DeliverServer)
func RegisterEndorserServer ¶
func RegisterEndorserServer(s *grpc.Server, srv EndorserServer)
Types ¶
type ACLs ¶
type ACLs struct { Acls map[string]*APIResource `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
acls为通道中的资源提供映射。APIResource封装 引用用于确定资源的ACL的策略
func (*ACLs) Descriptor ¶
func (*ACLs) GetAcls ¶
func (m *ACLs) GetAcls() map[string]*APIResource
func (*ACLs) ProtoMessage ¶
func (*ACLs) ProtoMessage()
func (*ACLs) XXX_DiscardUnknown ¶
func (m *ACLs) XXX_DiscardUnknown()
func (*ACLs) XXX_Unmarshal ¶
type APIResource ¶
type APIResource struct { PolicyRef string `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
APIResource表示其ACL所在的对等机中的API资源 由策略参考字段确定
func (*APIResource) Descriptor ¶
func (*APIResource) Descriptor() ([]byte, []int)
func (*APIResource) GetPolicyRef ¶
func (m *APIResource) GetPolicyRef() string
func (*APIResource) ProtoMessage ¶
func (*APIResource) ProtoMessage()
func (*APIResource) Reset ¶
func (m *APIResource) Reset()
func (*APIResource) String ¶
func (m *APIResource) String() string
func (*APIResource) XXX_DiscardUnknown ¶
func (m *APIResource) XXX_DiscardUnknown()
func (*APIResource) XXX_Marshal ¶
func (m *APIResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*APIResource) XXX_Merge ¶
func (dst *APIResource) XXX_Merge(src proto.Message)
func (*APIResource) XXX_Size ¶
func (m *APIResource) XXX_Size() int
func (*APIResource) XXX_Unmarshal ¶
func (m *APIResource) XXX_Unmarshal(b []byte) error
type AdminClient ¶
type AdminClient interface { GetStatus(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*ServerStatus, error) StartServer(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*ServerStatus, error) GetModuleLogLevel(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogLevelResponse, error) SetModuleLogLevel(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogLevelResponse, error) RevertLogLevels(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*empty.Empty, error) GetLogSpec(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogSpecResponse, error) SetLogSpec(ctx context.Context, in *common.Envelope, opts ...grpc.CallOption) (*LogSpecResponse, error) }
admin client是管理服务的客户端API。
有关CTX使用和关闭/结束流式RPC的语义,请参阅https://godoc.org/google.golang.org/grpc clientconn.newstream。
func NewAdminClient ¶
func NewAdminClient(cc *grpc.ClientConn) AdminClient
type AdminOperation ¶
type AdminOperation struct { //有效分配给内容的类型: //*管理员操作日志 //*管理员操作日志规范 Content isAdminOperation_Content `protobuf_oneof:"content"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AdminOperation) Descriptor ¶
func (*AdminOperation) Descriptor() ([]byte, []int)
func (*AdminOperation) GetContent ¶
func (m *AdminOperation) GetContent() isAdminOperation_Content
func (*AdminOperation) GetLogReq ¶
func (m *AdminOperation) GetLogReq() *LogLevelRequest
func (*AdminOperation) GetLogSpecReq ¶
func (m *AdminOperation) GetLogSpecReq() *LogSpecRequest
func (*AdminOperation) ProtoMessage ¶
func (*AdminOperation) ProtoMessage()
func (*AdminOperation) Reset ¶
func (m *AdminOperation) Reset()
func (*AdminOperation) String ¶
func (m *AdminOperation) String() string
func (*AdminOperation) XXX_DiscardUnknown ¶
func (m *AdminOperation) XXX_DiscardUnknown()
func (*AdminOperation) XXX_Marshal ¶
func (m *AdminOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AdminOperation) XXX_Merge ¶
func (dst *AdminOperation) XXX_Merge(src proto.Message)
func (*AdminOperation) XXX_OneofFuncs ¶
func (*AdminOperation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*AdminOperation) XXX_Size ¶
func (m *AdminOperation) XXX_Size() int
func (*AdminOperation) XXX_Unmarshal ¶
func (m *AdminOperation) XXX_Unmarshal(b []byte) error
type AdminOperation_LogReq ¶
type AdminOperation_LogReq struct {
LogReq *LogLevelRequest `protobuf:"bytes,1,opt,name=logReq,proto3,oneof"`
}
type AdminOperation_LogSpecReq ¶
type AdminOperation_LogSpecReq struct {
LogSpecReq *LogSpecRequest `protobuf:"bytes,2,opt,name=logSpecReq,proto3,oneof"`
}
type AdminServer ¶
type AdminServer interface { GetStatus(context.Context, *common.Envelope) (*ServerStatus, error) StartServer(context.Context, *common.Envelope) (*ServerStatus, error) GetModuleLogLevel(context.Context, *common.Envelope) (*LogLevelResponse, error) SetModuleLogLevel(context.Context, *common.Envelope) (*LogLevelResponse, error) RevertLogLevels(context.Context, *common.Envelope) (*empty.Empty, error) GetLogSpec(context.Context, *common.Envelope) (*LogSpecResponse, error) SetLogSpec(context.Context, *common.Envelope) (*LogSpecResponse, error) }
admin server是管理服务的服务器API。
type AnchorPeer ¶
type AnchorPeer struct { //定位点对等的DNS主机名 Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` //端口号 Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
AnchorPeer消息结构,提供关于锚定对等的信息,它包括主机名, 端口号和对等证书。
func (*AnchorPeer) Descriptor ¶
func (*AnchorPeer) Descriptor() ([]byte, []int)
func (*AnchorPeer) GetHost ¶
func (m *AnchorPeer) GetHost() string
func (*AnchorPeer) GetPort ¶
func (m *AnchorPeer) GetPort() int32
func (*AnchorPeer) ProtoMessage ¶
func (*AnchorPeer) ProtoMessage()
func (*AnchorPeer) Reset ¶
func (m *AnchorPeer) Reset()
func (*AnchorPeer) String ¶
func (m *AnchorPeer) String() string
func (*AnchorPeer) XXX_DiscardUnknown ¶
func (m *AnchorPeer) XXX_DiscardUnknown()
func (*AnchorPeer) XXX_Marshal ¶
func (m *AnchorPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AnchorPeer) XXX_Merge ¶
func (dst *AnchorPeer) XXX_Merge(src proto.Message)
func (*AnchorPeer) XXX_Size ¶
func (m *AnchorPeer) XXX_Size() int
func (*AnchorPeer) XXX_Unmarshal ¶
func (m *AnchorPeer) XXX_Unmarshal(b []byte) error
type AnchorPeers ¶
type AnchorPeers struct { AnchorPeers []*AnchorPeer `protobuf:"bytes,1,rep,name=anchor_peers,json=anchorPeers,proto3" json:"anchor_peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
anchor peers简单地表示配置项中使用的锚对等的列表
func (*AnchorPeers) Descriptor ¶
func (*AnchorPeers) Descriptor() ([]byte, []int)
func (*AnchorPeers) GetAnchorPeers ¶
func (m *AnchorPeers) GetAnchorPeers() []*AnchorPeer
func (*AnchorPeers) ProtoMessage ¶
func (*AnchorPeers) ProtoMessage()
func (*AnchorPeers) Reset ¶
func (m *AnchorPeers) Reset()
func (*AnchorPeers) String ¶
func (m *AnchorPeers) String() string
func (*AnchorPeers) XXX_DiscardUnknown ¶
func (m *AnchorPeers) XXX_DiscardUnknown()
func (*AnchorPeers) XXX_Marshal ¶
func (m *AnchorPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AnchorPeers) XXX_Merge ¶
func (dst *AnchorPeers) XXX_Merge(src proto.Message)
func (*AnchorPeers) XXX_Size ¶
func (m *AnchorPeers) XXX_Size() int
func (*AnchorPeers) XXX_Unmarshal ¶
func (m *AnchorPeers) XXX_Unmarshal(b []byte) error
type ChaincodeAction ¶
type ChaincodeAction struct { //此字段包含由 //执行此调用的链码。 Results []byte `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"` //此字段包含执行此操作的链码生成的事件 //调用。 Events []byte `protobuf:"bytes,2,opt,name=events,proto3" json:"events,omitempty"` //此字段包含执行此调用的结果。 Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` //此字段包含执行此调用的chaincodeid。背书人 //将在模拟建议时用背书人调用的chaincodeid设置它。 //提交者将验证与最新链码版本匹配的版本。 //添加chaincodeid以保持版本打开了多个 //每个事务的chaincodeaction。 ChaincodeId *ChaincodeID `protobuf:"bytes,4,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` //此字段包含由链码生成的令牌期望 //执行此调用 TokenExpectation *token.TokenExpectation `protobuf:"bytes,5,opt,name=token_expectation,json=tokenExpectation,proto3" json:"token_expectation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodeaction包含由执行生成的事件的操作 链码的。
func (*ChaincodeAction) Descriptor ¶
func (*ChaincodeAction) Descriptor() ([]byte, []int)
func (*ChaincodeAction) GetChaincodeId ¶
func (m *ChaincodeAction) GetChaincodeId() *ChaincodeID
func (*ChaincodeAction) GetEvents ¶
func (m *ChaincodeAction) GetEvents() []byte
func (*ChaincodeAction) GetResponse ¶
func (m *ChaincodeAction) GetResponse() *Response
func (*ChaincodeAction) GetResults ¶
func (m *ChaincodeAction) GetResults() []byte
func (*ChaincodeAction) GetTokenExpectation ¶
func (m *ChaincodeAction) GetTokenExpectation() *token.TokenExpectation
func (*ChaincodeAction) ProtoMessage ¶
func (*ChaincodeAction) ProtoMessage()
func (*ChaincodeAction) Reset ¶
func (m *ChaincodeAction) Reset()
func (*ChaincodeAction) StaticallyOpaqueFieldProto ¶
func (ca *ChaincodeAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*ChaincodeAction) StaticallyOpaqueFields ¶
func (ca *ChaincodeAction) StaticallyOpaqueFields() []string
func (*ChaincodeAction) String ¶
func (m *ChaincodeAction) String() string
func (*ChaincodeAction) XXX_DiscardUnknown ¶
func (m *ChaincodeAction) XXX_DiscardUnknown()
func (*ChaincodeAction) XXX_Marshal ¶
func (m *ChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeAction) XXX_Merge ¶
func (dst *ChaincodeAction) XXX_Merge(src proto.Message)
func (*ChaincodeAction) XXX_Size ¶
func (m *ChaincodeAction) XXX_Size() int
func (*ChaincodeAction) XXX_Unmarshal ¶
func (m *ChaincodeAction) XXX_Unmarshal(b []byte) error
type ChaincodeActionPayload ¶
type ChaincodeActionPayload struct { //此字段包含来自的chaincodeProposalPayLoad消息的字节 //应用程序之后的原始调用(本质上是参数) //可见性函数的。主要的可见性模式是“满”(即 //此处包含整个chaincodeProposalPayLoad消息),“hash”(仅限 //包含chaincodeProposalPayLoad消息的哈希)或 //“没什么”。此字段将用于检查 //ProposalResponsePayLoad.ProposalHash。对于链码类型, //ProposalResponsePayLoad.ProposalHash应为h(ProposalHeader //f(chaincodeProposalPayLoad)),其中f是可见性函数。 ChaincodeProposalPayload []byte `` /* 135-byte string literal not displayed */ //要应用于分类帐的操作列表 Action *ChaincodeEndorsedAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeActionPayload是用于事务处理的消息 当头的类型设置为chaincode时的有效负载。它承载着 chaincodeProposalPayLoad和要应用于分类帐的已背书操作。
func (*ChaincodeActionPayload) Descriptor ¶
func (*ChaincodeActionPayload) Descriptor() ([]byte, []int)
func (*ChaincodeActionPayload) GetAction ¶
func (m *ChaincodeActionPayload) GetAction() *ChaincodeEndorsedAction
func (*ChaincodeActionPayload) GetChaincodeProposalPayload ¶
func (m *ChaincodeActionPayload) GetChaincodeProposalPayload() []byte
func (*ChaincodeActionPayload) ProtoMessage ¶
func (*ChaincodeActionPayload) ProtoMessage()
func (*ChaincodeActionPayload) Reset ¶
func (m *ChaincodeActionPayload) Reset()
func (*ChaincodeActionPayload) StaticallyOpaqueFieldProto ¶
func (cap *ChaincodeActionPayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*ChaincodeActionPayload) StaticallyOpaqueFields ¶
func (cap *ChaincodeActionPayload) StaticallyOpaqueFields() []string
func (*ChaincodeActionPayload) String ¶
func (m *ChaincodeActionPayload) String() string
func (*ChaincodeActionPayload) XXX_DiscardUnknown ¶
func (m *ChaincodeActionPayload) XXX_DiscardUnknown()
func (*ChaincodeActionPayload) XXX_Marshal ¶
func (m *ChaincodeActionPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeActionPayload) XXX_Merge ¶
func (dst *ChaincodeActionPayload) XXX_Merge(src proto.Message)
func (*ChaincodeActionPayload) XXX_Size ¶
func (m *ChaincodeActionPayload) XXX_Size() int
func (*ChaincodeActionPayload) XXX_Unmarshal ¶
func (m *ChaincodeActionPayload) XXX_Unmarshal(b []byte) error
type ChaincodeDeploymentSpec ¶
type ChaincodeDeploymentSpec struct { ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` CodePackage []byte `protobuf:"bytes,3,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"` ExecEnv ChaincodeDeploymentSpec_ExecutionEnvironment `` /* 140-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
指定链代码的部署。 TODO:定义“codepackage”。
func (*ChaincodeDeploymentSpec) Bytes ¶
func (cds *ChaincodeDeploymentSpec) Bytes() []byte
bytes实现platforms.codepackage接口
func (*ChaincodeDeploymentSpec) CCType ¶
func (cds *ChaincodeDeploymentSpec) CCType() string
func (*ChaincodeDeploymentSpec) Descriptor ¶
func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
func (*ChaincodeDeploymentSpec) GetChaincodeSpec ¶
func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec
func (*ChaincodeDeploymentSpec) GetCodePackage ¶
func (m *ChaincodeDeploymentSpec) GetCodePackage() []byte
func (*ChaincodeDeploymentSpec) GetExecEnv ¶
func (m *ChaincodeDeploymentSpec) GetExecEnv() ChaincodeDeploymentSpec_ExecutionEnvironment
func (*ChaincodeDeploymentSpec) Name ¶
func (cds *ChaincodeDeploymentSpec) Name() string
func (*ChaincodeDeploymentSpec) Path ¶
func (cds *ChaincodeDeploymentSpec) Path() string
path实现platforms.pathDescriber接口
func (*ChaincodeDeploymentSpec) ProtoMessage ¶
func (*ChaincodeDeploymentSpec) ProtoMessage()
func (*ChaincodeDeploymentSpec) Reset ¶
func (m *ChaincodeDeploymentSpec) Reset()
func (*ChaincodeDeploymentSpec) String ¶
func (m *ChaincodeDeploymentSpec) String() string
func (*ChaincodeDeploymentSpec) Version ¶
func (cds *ChaincodeDeploymentSpec) Version() string
func (*ChaincodeDeploymentSpec) XXX_DiscardUnknown ¶
func (m *ChaincodeDeploymentSpec) XXX_DiscardUnknown()
func (*ChaincodeDeploymentSpec) XXX_Marshal ¶
func (m *ChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeDeploymentSpec) XXX_Merge ¶
func (dst *ChaincodeDeploymentSpec) XXX_Merge(src proto.Message)
func (*ChaincodeDeploymentSpec) XXX_Size ¶
func (m *ChaincodeDeploymentSpec) XXX_Size() int
func (*ChaincodeDeploymentSpec) XXX_Unmarshal ¶
func (m *ChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error
type ChaincodeDeploymentSpec_ExecutionEnvironment ¶
type ChaincodeDeploymentSpec_ExecutionEnvironment int32
const ( ChaincodeDeploymentSpec_DOCKER ChaincodeDeploymentSpec_ExecutionEnvironment = 0 ChaincodeDeploymentSpec_SYSTEM ChaincodeDeploymentSpec_ExecutionEnvironment = 1 )
func (ChaincodeDeploymentSpec_ExecutionEnvironment) EnumDescriptor ¶
func (ChaincodeDeploymentSpec_ExecutionEnvironment) EnumDescriptor() ([]byte, []int)
func (ChaincodeDeploymentSpec_ExecutionEnvironment) String ¶
func (x ChaincodeDeploymentSpec_ExecutionEnvironment) String() string
type ChaincodeEndorsedAction ¶
type ChaincodeEndorsedAction struct { //这是由 //背书人。回想一下,对于链式代码类型, //ProposalResponsePayLoad的扩展字段带有一个链式代码操作 ProposalResponsePayload []byte `` /* 132-byte string literal not displayed */ //提案的背书,基本上是背书人的签字 //投标责任书 Endorsements []*Endorsement `protobuf:"bytes,2,rep,name=endorsements,proto3" json:"endorsements,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodeRemarkedAction包含有关 具体建议
func (*ChaincodeEndorsedAction) Descriptor ¶
func (*ChaincodeEndorsedAction) Descriptor() ([]byte, []int)
func (*ChaincodeEndorsedAction) GetEndorsements ¶
func (m *ChaincodeEndorsedAction) GetEndorsements() []*Endorsement
func (*ChaincodeEndorsedAction) GetProposalResponsePayload ¶
func (m *ChaincodeEndorsedAction) GetProposalResponsePayload() []byte
func (*ChaincodeEndorsedAction) ProtoMessage ¶
func (*ChaincodeEndorsedAction) ProtoMessage()
func (*ChaincodeEndorsedAction) Reset ¶
func (m *ChaincodeEndorsedAction) Reset()
func (*ChaincodeEndorsedAction) StaticallyOpaqueFieldProto ¶
func (cae *ChaincodeEndorsedAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*ChaincodeEndorsedAction) StaticallyOpaqueFields ¶
func (cae *ChaincodeEndorsedAction) StaticallyOpaqueFields() []string
func (*ChaincodeEndorsedAction) String ¶
func (m *ChaincodeEndorsedAction) String() string
func (*ChaincodeEndorsedAction) XXX_DiscardUnknown ¶
func (m *ChaincodeEndorsedAction) XXX_DiscardUnknown()
func (*ChaincodeEndorsedAction) XXX_Marshal ¶
func (m *ChaincodeEndorsedAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeEndorsedAction) XXX_Merge ¶
func (dst *ChaincodeEndorsedAction) XXX_Merge(src proto.Message)
func (*ChaincodeEndorsedAction) XXX_Size ¶
func (m *ChaincodeEndorsedAction) XXX_Size() int
func (*ChaincodeEndorsedAction) XXX_Unmarshal ¶
func (m *ChaincodeEndorsedAction) XXX_Unmarshal(b []byte) error
type ChaincodeEndorsement ¶
type ChaincodeEndorsement struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincode认可指示对等方如何认可事务。唯一 如今与织物一起提供的认可机制是标准的“ESCC”机制。 此代码简单地模拟生成一个rw集的建议,然后对结果进行签名。 使用对等机的本地签名标识。
func (*ChaincodeEndorsement) Descriptor ¶
func (*ChaincodeEndorsement) Descriptor() ([]byte, []int)
func (*ChaincodeEndorsement) GetName ¶
func (m *ChaincodeEndorsement) GetName() string
func (*ChaincodeEndorsement) ProtoMessage ¶
func (*ChaincodeEndorsement) ProtoMessage()
func (*ChaincodeEndorsement) Reset ¶
func (m *ChaincodeEndorsement) Reset()
func (*ChaincodeEndorsement) String ¶
func (m *ChaincodeEndorsement) String() string
func (*ChaincodeEndorsement) XXX_DiscardUnknown ¶
func (m *ChaincodeEndorsement) XXX_DiscardUnknown()
func (*ChaincodeEndorsement) XXX_Marshal ¶
func (m *ChaincodeEndorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeEndorsement) XXX_Merge ¶
func (dst *ChaincodeEndorsement) XXX_Merge(src proto.Message)
func (*ChaincodeEndorsement) XXX_Size ¶
func (m *ChaincodeEndorsement) XXX_Size() int
func (*ChaincodeEndorsement) XXX_Unmarshal ¶
func (m *ChaincodeEndorsement) XXX_Unmarshal(b []byte) error
type ChaincodeEvent ¶
type ChaincodeEvent struct { ChaincodeId string `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` EventName string `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChaincodeEvent用于特定于Chaincode的事件和注册 字符串类型-“链码”
func (*ChaincodeEvent) Descriptor ¶
func (*ChaincodeEvent) Descriptor() ([]byte, []int)
func (*ChaincodeEvent) GetChaincodeId ¶
func (m *ChaincodeEvent) GetChaincodeId() string
func (*ChaincodeEvent) GetEventName ¶
func (m *ChaincodeEvent) GetEventName() string
func (*ChaincodeEvent) GetPayload ¶
func (m *ChaincodeEvent) GetPayload() []byte
func (*ChaincodeEvent) GetTxId ¶
func (m *ChaincodeEvent) GetTxId() string
func (*ChaincodeEvent) ProtoMessage ¶
func (*ChaincodeEvent) ProtoMessage()
func (*ChaincodeEvent) Reset ¶
func (m *ChaincodeEvent) Reset()
func (*ChaincodeEvent) String ¶
func (m *ChaincodeEvent) String() string
func (*ChaincodeEvent) XXX_DiscardUnknown ¶
func (m *ChaincodeEvent) XXX_DiscardUnknown()
func (*ChaincodeEvent) XXX_Marshal ¶
func (m *ChaincodeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeEvent) XXX_Merge ¶
func (dst *ChaincodeEvent) XXX_Merge(src proto.Message)
func (*ChaincodeEvent) XXX_Size ¶
func (m *ChaincodeEvent) XXX_Size() int
func (*ChaincodeEvent) XXX_Unmarshal ¶
func (m *ChaincodeEvent) XXX_Unmarshal(b []byte) error
type ChaincodeHeaderExtension ¶
type ChaincodeHeaderExtension struct { //PayloadVisibility字段控制提案的有效负载的范围 //(回想一下,对于类型chaincode,它是chaincodeProposalPayload //message)字段将在最终交易和分类帐中可见。 //理想情况下,它是可配置的,支持至少3个主可见性 //模式: //1。有效载荷的所有字节都可见; //2。只有有效载荷的散列是可见的; //三。什么都看不见。 //请注意,可见性功能可能是ESCC的一部分。 //在这种情况下,它将覆盖PayloadVisibility字段。最后注意到 //此字段影响ProposalResponsePayLoad.ProposalHash的内容。 PayloadVisibility []byte `protobuf:"bytes,1,opt,name=payload_visibility,json=payloadVisibility,proto3" json:"payload_visibility,omitempty"` //目标的链代码的ID。 ChaincodeId *ChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodeheaderextension是要在以下情况下使用的头的扩展消息: 头的类型是chaincode。此扩展用于指定 要调用的链码以及应在分类帐上显示的内容。
func (*ChaincodeHeaderExtension) Descriptor ¶
func (*ChaincodeHeaderExtension) Descriptor() ([]byte, []int)
func (*ChaincodeHeaderExtension) GetChaincodeId ¶
func (m *ChaincodeHeaderExtension) GetChaincodeId() *ChaincodeID
func (*ChaincodeHeaderExtension) GetPayloadVisibility ¶
func (m *ChaincodeHeaderExtension) GetPayloadVisibility() []byte
func (*ChaincodeHeaderExtension) ProtoMessage ¶
func (*ChaincodeHeaderExtension) ProtoMessage()
func (*ChaincodeHeaderExtension) Reset ¶
func (m *ChaincodeHeaderExtension) Reset()
func (*ChaincodeHeaderExtension) String ¶
func (m *ChaincodeHeaderExtension) String() string
func (*ChaincodeHeaderExtension) XXX_DiscardUnknown ¶
func (m *ChaincodeHeaderExtension) XXX_DiscardUnknown()
func (*ChaincodeHeaderExtension) XXX_Marshal ¶
func (m *ChaincodeHeaderExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeHeaderExtension) XXX_Merge ¶
func (dst *ChaincodeHeaderExtension) XXX_Merge(src proto.Message)
func (*ChaincodeHeaderExtension) XXX_Size ¶
func (m *ChaincodeHeaderExtension) XXX_Size() int
func (*ChaincodeHeaderExtension) XXX_Unmarshal ¶
func (m *ChaincodeHeaderExtension) XXX_Unmarshal(b []byte) error
type ChaincodeID ¶
type ChaincodeID struct { //部署事务将使用路径 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` //所有其他请求都将使用由 //部署事务 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //链码的用户友好版本名 Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodeid包含deploy事务指定的路径 创建了它以及由 路径的系统。从用户级别(例如,cli、rest api等) Deploy事务应提供路径和其他请求 应提供哈希代码。另一个值将被忽略。 在内部,结构可以包含这两个值。例如, 将在第一次使用路径生成时设置哈希代码
func (*ChaincodeID) Descriptor ¶
func (*ChaincodeID) Descriptor() ([]byte, []int)
func (*ChaincodeID) GetName ¶
func (m *ChaincodeID) GetName() string
func (*ChaincodeID) GetPath ¶
func (m *ChaincodeID) GetPath() string
func (*ChaincodeID) GetVersion ¶
func (m *ChaincodeID) GetVersion() string
func (*ChaincodeID) ProtoMessage ¶
func (*ChaincodeID) ProtoMessage()
func (*ChaincodeID) Reset ¶
func (m *ChaincodeID) Reset()
func (*ChaincodeID) String ¶
func (m *ChaincodeID) String() string
func (*ChaincodeID) XXX_DiscardUnknown ¶
func (m *ChaincodeID) XXX_DiscardUnknown()
func (*ChaincodeID) XXX_Marshal ¶
func (m *ChaincodeID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeID) XXX_Merge ¶
func (dst *ChaincodeID) XXX_Merge(src proto.Message)
func (*ChaincodeID) XXX_Size ¶
func (m *ChaincodeID) XXX_Size() int
func (*ChaincodeID) XXX_Unmarshal ¶
func (m *ChaincodeID) XXX_Unmarshal(b []byte) error
type ChaincodeIdentifier ¶
type ChaincodeIdentifier struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodeidentifier标识一段chaincode。允许对等机接受 此链码,安装的代码的哈希必须匹配,版本字符串也必须匹配 包含在安装命令中。
func (*ChaincodeIdentifier) Descriptor ¶
func (*ChaincodeIdentifier) Descriptor() ([]byte, []int)
func (*ChaincodeIdentifier) GetHash ¶
func (m *ChaincodeIdentifier) GetHash() []byte
func (*ChaincodeIdentifier) GetVersion ¶
func (m *ChaincodeIdentifier) GetVersion() string
func (*ChaincodeIdentifier) ProtoMessage ¶
func (*ChaincodeIdentifier) ProtoMessage()
func (*ChaincodeIdentifier) Reset ¶
func (m *ChaincodeIdentifier) Reset()
func (*ChaincodeIdentifier) String ¶
func (m *ChaincodeIdentifier) String() string
func (*ChaincodeIdentifier) XXX_DiscardUnknown ¶
func (m *ChaincodeIdentifier) XXX_DiscardUnknown()
func (*ChaincodeIdentifier) XXX_Marshal ¶
func (m *ChaincodeIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeIdentifier) XXX_Merge ¶
func (dst *ChaincodeIdentifier) XXX_Merge(src proto.Message)
func (*ChaincodeIdentifier) XXX_Size ¶
func (m *ChaincodeIdentifier) XXX_Size() int
func (*ChaincodeIdentifier) XXX_Unmarshal ¶
func (m *ChaincodeIdentifier) XXX_Unmarshal(b []byte) error
type ChaincodeInfo ¶
type ChaincodeInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` //安装/实例化事务指定的路径 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` //实例化时的chaincode函数及其参数。这将是 //如果查询返回有关已安装链码的信息,则为空。 Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` //此链码的ESCC名称。这将是 //如果查询返回有关已安装链码的信息,则为空。 Escc string `protobuf:"bytes,5,opt,name=escc,proto3" json:"escc,omitempty"` //此链代码的VSCC的名称。这将是 //如果查询返回有关已安装链码的信息,则为空。 Vscc string `protobuf:"bytes,6,opt,name=vscc,proto3" json:"vscc,omitempty"` //链码唯一ID。 //计算为:H( //H(名称版本) //H(CODEPACKAGE) //) Id []byte `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodeinfo包含有关已安装/实例化的 链码
func (*ChaincodeInfo) Descriptor ¶
func (*ChaincodeInfo) Descriptor() ([]byte, []int)
func (*ChaincodeInfo) GetEscc ¶
func (m *ChaincodeInfo) GetEscc() string
func (*ChaincodeInfo) GetId ¶
func (m *ChaincodeInfo) GetId() []byte
func (*ChaincodeInfo) GetInput ¶
func (m *ChaincodeInfo) GetInput() string
func (*ChaincodeInfo) GetName ¶
func (m *ChaincodeInfo) GetName() string
func (*ChaincodeInfo) GetPath ¶
func (m *ChaincodeInfo) GetPath() string
func (*ChaincodeInfo) GetVersion ¶
func (m *ChaincodeInfo) GetVersion() string
func (*ChaincodeInfo) GetVscc ¶
func (m *ChaincodeInfo) GetVscc() string
func (*ChaincodeInfo) ProtoMessage ¶
func (*ChaincodeInfo) ProtoMessage()
func (*ChaincodeInfo) Reset ¶
func (m *ChaincodeInfo) Reset()
func (*ChaincodeInfo) String ¶
func (m *ChaincodeInfo) String() string
func (*ChaincodeInfo) XXX_DiscardUnknown ¶
func (m *ChaincodeInfo) XXX_DiscardUnknown()
func (*ChaincodeInfo) XXX_Marshal ¶
func (m *ChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeInfo) XXX_Merge ¶
func (dst *ChaincodeInfo) XXX_Merge(src proto.Message)
func (*ChaincodeInfo) XXX_Size ¶
func (m *ChaincodeInfo) XXX_Size() int
func (*ChaincodeInfo) XXX_Unmarshal ¶
func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error
type ChaincodeInput ¶
type ChaincodeInput struct { Args [][]byte `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` Decorations map[string][]byte `` /* 163-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
携带chaincode函数及其参数。 unmashaljson in transaction.go将基于字符串的rest/json输入转换为 基于[]字节的当前chaincodeinput结构。
func (*ChaincodeInput) Descriptor ¶
func (*ChaincodeInput) Descriptor() ([]byte, []int)
func (*ChaincodeInput) GetArgs ¶
func (m *ChaincodeInput) GetArgs() [][]byte
func (*ChaincodeInput) GetDecorations ¶
func (m *ChaincodeInput) GetDecorations() map[string][]byte
func (*ChaincodeInput) ProtoMessage ¶
func (*ChaincodeInput) ProtoMessage()
func (*ChaincodeInput) Reset ¶
func (m *ChaincodeInput) Reset()
func (*ChaincodeInput) String ¶
func (m *ChaincodeInput) String() string
func (*ChaincodeInput) UnmarshalJSON ¶
func (c *ChaincodeInput) UnmarshalJSON(b []byte) error
unmashaljson将基于字符串的rest/json输入转换为 基于[]字节的当前chaincodeinput结构。
func (*ChaincodeInput) XXX_DiscardUnknown ¶
func (m *ChaincodeInput) XXX_DiscardUnknown()
func (*ChaincodeInput) XXX_Marshal ¶
func (m *ChaincodeInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeInput) XXX_Merge ¶
func (dst *ChaincodeInput) XXX_Merge(src proto.Message)
func (*ChaincodeInput) XXX_Size ¶
func (m *ChaincodeInput) XXX_Size() int
func (*ChaincodeInput) XXX_Unmarshal ¶
func (m *ChaincodeInput) XXX_Unmarshal(b []byte) error
type ChaincodeInvocationSpec ¶
type ChaincodeInvocationSpec struct { ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec,proto3" json:"chaincode_spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
携带chaincode函数及其参数。
func (*ChaincodeInvocationSpec) Descriptor ¶
func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int)
func (*ChaincodeInvocationSpec) GetChaincodeSpec ¶
func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec
func (*ChaincodeInvocationSpec) ProtoMessage ¶
func (*ChaincodeInvocationSpec) ProtoMessage()
func (*ChaincodeInvocationSpec) Reset ¶
func (m *ChaincodeInvocationSpec) Reset()
func (*ChaincodeInvocationSpec) String ¶
func (m *ChaincodeInvocationSpec) String() string
func (*ChaincodeInvocationSpec) XXX_DiscardUnknown ¶
func (m *ChaincodeInvocationSpec) XXX_DiscardUnknown()
func (*ChaincodeInvocationSpec) XXX_Marshal ¶
func (m *ChaincodeInvocationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeInvocationSpec) XXX_Merge ¶
func (dst *ChaincodeInvocationSpec) XXX_Merge(src proto.Message)
func (*ChaincodeInvocationSpec) XXX_Size ¶
func (m *ChaincodeInvocationSpec) XXX_Size() int
func (*ChaincodeInvocationSpec) XXX_Unmarshal ¶
func (m *ChaincodeInvocationSpec) XXX_Unmarshal(b []byte) error
type ChaincodeMessage ¶
type ChaincodeMessage struct { Type ChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeMessage_Type" json:"type,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` Txid string `protobuf:"bytes,4,opt,name=txid,proto3" json:"txid,omitempty"` Proposal *SignedProposal `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"` //由链码发出的事件。仅与init或invoke一起使用。 //然后存储此事件(当前) //使用block.nonhashdata.TransactionResult ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,6,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` //通道标识 ChannelId string `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChaincodeMessage) Descriptor ¶
func (*ChaincodeMessage) Descriptor() ([]byte, []int)
func (*ChaincodeMessage) GetChaincodeEvent ¶
func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent
func (*ChaincodeMessage) GetChannelId ¶
func (m *ChaincodeMessage) GetChannelId() string
func (*ChaincodeMessage) GetPayload ¶
func (m *ChaincodeMessage) GetPayload() []byte
func (*ChaincodeMessage) GetProposal ¶
func (m *ChaincodeMessage) GetProposal() *SignedProposal
func (*ChaincodeMessage) GetTimestamp ¶
func (m *ChaincodeMessage) GetTimestamp() *timestamp.Timestamp
func (*ChaincodeMessage) GetTxid ¶
func (m *ChaincodeMessage) GetTxid() string
func (*ChaincodeMessage) GetType ¶
func (m *ChaincodeMessage) GetType() ChaincodeMessage_Type
func (*ChaincodeMessage) ProtoMessage ¶
func (*ChaincodeMessage) ProtoMessage()
func (*ChaincodeMessage) Reset ¶
func (m *ChaincodeMessage) Reset()
func (*ChaincodeMessage) String ¶
func (m *ChaincodeMessage) String() string
func (*ChaincodeMessage) XXX_DiscardUnknown ¶
func (m *ChaincodeMessage) XXX_DiscardUnknown()
func (*ChaincodeMessage) XXX_Marshal ¶
func (m *ChaincodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeMessage) XXX_Merge ¶
func (dst *ChaincodeMessage) XXX_Merge(src proto.Message)
func (*ChaincodeMessage) XXX_Size ¶
func (m *ChaincodeMessage) XXX_Size() int
func (*ChaincodeMessage) XXX_Unmarshal ¶
func (m *ChaincodeMessage) XXX_Unmarshal(b []byte) error
type ChaincodeMessage_Type ¶
type ChaincodeMessage_Type int32
const ( ChaincodeMessage_UNDEFINED ChaincodeMessage_Type = 0 ChaincodeMessage_REGISTER ChaincodeMessage_Type = 1 ChaincodeMessage_REGISTERED ChaincodeMessage_Type = 2 ChaincodeMessage_INIT ChaincodeMessage_Type = 3 ChaincodeMessage_READY ChaincodeMessage_Type = 4 ChaincodeMessage_TRANSACTION ChaincodeMessage_Type = 5 ChaincodeMessage_COMPLETED ChaincodeMessage_Type = 6 ChaincodeMessage_ERROR ChaincodeMessage_Type = 7 ChaincodeMessage_GET_STATE ChaincodeMessage_Type = 8 ChaincodeMessage_PUT_STATE ChaincodeMessage_Type = 9 ChaincodeMessage_DEL_STATE ChaincodeMessage_Type = 10 ChaincodeMessage_INVOKE_CHAINCODE ChaincodeMessage_Type = 11 ChaincodeMessage_RESPONSE ChaincodeMessage_Type = 13 ChaincodeMessage_GET_STATE_BY_RANGE ChaincodeMessage_Type = 14 ChaincodeMessage_GET_QUERY_RESULT ChaincodeMessage_Type = 15 ChaincodeMessage_QUERY_STATE_NEXT ChaincodeMessage_Type = 16 ChaincodeMessage_QUERY_STATE_CLOSE ChaincodeMessage_Type = 17 ChaincodeMessage_KEEPALIVE ChaincodeMessage_Type = 18 ChaincodeMessage_GET_HISTORY_FOR_KEY ChaincodeMessage_Type = 19 ChaincodeMessage_GET_STATE_METADATA ChaincodeMessage_Type = 20 ChaincodeMessage_PUT_STATE_METADATA ChaincodeMessage_Type = 21 )
func (ChaincodeMessage_Type) EnumDescriptor ¶
func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int)
func (ChaincodeMessage_Type) String ¶
func (x ChaincodeMessage_Type) String() string
type ChaincodeProposalPayload ¶
type ChaincodeProposalPayload struct { //输入包含此调用的参数。如果这个调用 //部署新的链代码,escc/vscc是该字段的一部分。 //这通常是封送的chaincodeinvocationspec Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` //transientmap包含可能使用的数据(例如加密材料) //实现某种形式的应用程序级机密性。内容 //应始终从事务中省略此字段的 //不包括在分类帐中。 TransientMap map[string][]byte `` /* 165-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodeProposalPayLoad是建议的有效负载消息,当 头的类型是chaincode。它包含这个的参数 调用。
func (*ChaincodeProposalPayload) Descriptor ¶
func (*ChaincodeProposalPayload) Descriptor() ([]byte, []int)
func (*ChaincodeProposalPayload) GetInput ¶
func (m *ChaincodeProposalPayload) GetInput() []byte
func (*ChaincodeProposalPayload) GetTransientMap ¶
func (m *ChaincodeProposalPayload) GetTransientMap() map[string][]byte
func (*ChaincodeProposalPayload) ProtoMessage ¶
func (*ChaincodeProposalPayload) ProtoMessage()
func (*ChaincodeProposalPayload) Reset ¶
func (m *ChaincodeProposalPayload) Reset()
func (*ChaincodeProposalPayload) StaticallyOpaqueFieldProto ¶
func (cpp *ChaincodeProposalPayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*ChaincodeProposalPayload) StaticallyOpaqueFields ¶
func (cpp *ChaincodeProposalPayload) StaticallyOpaqueFields() []string
func (*ChaincodeProposalPayload) String ¶
func (m *ChaincodeProposalPayload) String() string
func (*ChaincodeProposalPayload) XXX_DiscardUnknown ¶
func (m *ChaincodeProposalPayload) XXX_DiscardUnknown()
func (*ChaincodeProposalPayload) XXX_Marshal ¶
func (m *ChaincodeProposalPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeProposalPayload) XXX_Merge ¶
func (dst *ChaincodeProposalPayload) XXX_Merge(src proto.Message)
func (*ChaincodeProposalPayload) XXX_Size ¶
func (m *ChaincodeProposalPayload) XXX_Size() int
func (*ChaincodeProposalPayload) XXX_Unmarshal ¶
func (m *ChaincodeProposalPayload) XXX_Unmarshal(b []byte) error
type ChaincodeQueryResponse ¶
type ChaincodeQueryResponse struct { Chaincodes []*ChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodequeryresponse返回与之相关的每个chaincode的信息 到lscc.go中的查询,如getchaincodes(返回所有链码 在通道上实例化)和getInstalledChaincodes(返回所有链码 安装在对等机上)
func (*ChaincodeQueryResponse) Descriptor ¶
func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int)
func (*ChaincodeQueryResponse) GetChaincodes ¶
func (m *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo
func (*ChaincodeQueryResponse) ProtoMessage ¶
func (*ChaincodeQueryResponse) ProtoMessage()
func (*ChaincodeQueryResponse) Reset ¶
func (m *ChaincodeQueryResponse) Reset()
func (*ChaincodeQueryResponse) String ¶
func (m *ChaincodeQueryResponse) String() string
func (*ChaincodeQueryResponse) XXX_DiscardUnknown ¶
func (m *ChaincodeQueryResponse) XXX_DiscardUnknown()
func (*ChaincodeQueryResponse) XXX_Marshal ¶
func (m *ChaincodeQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeQueryResponse) XXX_Merge ¶
func (dst *ChaincodeQueryResponse) XXX_Merge(src proto.Message)
func (*ChaincodeQueryResponse) XXX_Size ¶
func (m *ChaincodeQueryResponse) XXX_Size() int
func (*ChaincodeQueryResponse) XXX_Unmarshal ¶
func (m *ChaincodeQueryResponse) XXX_Unmarshal(b []byte) error
type ChaincodeSpec ¶
type ChaincodeSpec struct { Type ChaincodeSpec_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeSpec_Type" json:"type,omitempty"` ChaincodeId *ChaincodeID `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` Input *ChaincodeInput `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` Timeout int32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
包含链码规范。这是所需的实际元数据 定义链代码。
func (*ChaincodeSpec) CCType ¶
func (cs *ChaincodeSpec) CCType() string
func (*ChaincodeSpec) Descriptor ¶
func (*ChaincodeSpec) Descriptor() ([]byte, []int)
func (*ChaincodeSpec) GetChaincodeId ¶
func (m *ChaincodeSpec) GetChaincodeId() *ChaincodeID
func (*ChaincodeSpec) GetInput ¶
func (m *ChaincodeSpec) GetInput() *ChaincodeInput
func (*ChaincodeSpec) GetTimeout ¶
func (m *ChaincodeSpec) GetTimeout() int32
func (*ChaincodeSpec) GetType ¶
func (m *ChaincodeSpec) GetType() ChaincodeSpec_Type
func (*ChaincodeSpec) ProtoMessage ¶
func (*ChaincodeSpec) ProtoMessage()
func (*ChaincodeSpec) Reset ¶
func (m *ChaincodeSpec) Reset()
func (*ChaincodeSpec) String ¶
func (m *ChaincodeSpec) String() string
func (*ChaincodeSpec) Version ¶
func (cs *ChaincodeSpec) Version() string
func (*ChaincodeSpec) XXX_DiscardUnknown ¶
func (m *ChaincodeSpec) XXX_DiscardUnknown()
func (*ChaincodeSpec) XXX_Marshal ¶
func (m *ChaincodeSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeSpec) XXX_Merge ¶
func (dst *ChaincodeSpec) XXX_Merge(src proto.Message)
func (*ChaincodeSpec) XXX_Size ¶
func (m *ChaincodeSpec) XXX_Size() int
func (*ChaincodeSpec) XXX_Unmarshal ¶
func (m *ChaincodeSpec) XXX_Unmarshal(b []byte) error
type ChaincodeSpec_Type ¶
type ChaincodeSpec_Type int32
const ( ChaincodeSpec_UNDEFINED ChaincodeSpec_Type = 0 ChaincodeSpec_GOLANG ChaincodeSpec_Type = 1 ChaincodeSpec_NODE ChaincodeSpec_Type = 2 ChaincodeSpec_CAR ChaincodeSpec_Type = 3 ChaincodeSpec_JAVA ChaincodeSpec_Type = 4 )
func (ChaincodeSpec_Type) EnumDescriptor ¶
func (ChaincodeSpec_Type) EnumDescriptor() ([]byte, []int)
func (ChaincodeSpec_Type) String ¶
func (x ChaincodeSpec_Type) String() string
type ChaincodeSupportClient ¶
type ChaincodeSupportClient interface {
Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error)
}
ChaincodeSupportClient是ChaincodeSupport服务的客户端API。
有关CTX使用和关闭/结束流式RPC的语义,请参阅https://godoc.org/google.golang.org/grpc clientconn.newstream。
func NewChaincodeSupportClient ¶
func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient
type ChaincodeSupportServer ¶
type ChaincodeSupportServer interface {
Register(ChaincodeSupport_RegisterServer) error
}
ChaincodeSupportServer是用于ChaincodeSupport服务的服务器API。
type ChaincodeSupport_RegisterClient ¶
type ChaincodeSupport_RegisterClient interface { Send(*ChaincodeMessage) error Recv() (*ChaincodeMessage, error) grpc.ClientStream }
type ChaincodeSupport_RegisterServer ¶
type ChaincodeSupport_RegisterServer interface { Send(*ChaincodeMessage) error Recv() (*ChaincodeMessage, error) grpc.ServerStream }
type ChaincodeValidation ¶
type ChaincodeValidation struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Argument []byte `protobuf:"bytes,2,opt,name=argument,proto3" json:"argument,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
chaincodevalidation指示对等端如何处理此chaincode的事务 验证。目前唯一与织物一起提供的验证机制是标准的 “vscc”验证机制。此内置验证方法使用认可策略 它检查是否包含了足够数量的签名。“争论” 字段对验证实现所需的任何参数进行编码。
func (*ChaincodeValidation) Descriptor ¶
func (*ChaincodeValidation) Descriptor() ([]byte, []int)
func (*ChaincodeValidation) GetArgument ¶
func (m *ChaincodeValidation) GetArgument() []byte
func (*ChaincodeValidation) GetName ¶
func (m *ChaincodeValidation) GetName() string
func (*ChaincodeValidation) ProtoMessage ¶
func (*ChaincodeValidation) ProtoMessage()
func (*ChaincodeValidation) Reset ¶
func (m *ChaincodeValidation) Reset()
func (*ChaincodeValidation) String ¶
func (m *ChaincodeValidation) String() string
func (*ChaincodeValidation) XXX_DiscardUnknown ¶
func (m *ChaincodeValidation) XXX_DiscardUnknown()
func (*ChaincodeValidation) XXX_Marshal ¶
func (m *ChaincodeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChaincodeValidation) XXX_Merge ¶
func (dst *ChaincodeValidation) XXX_Merge(src proto.Message)
func (*ChaincodeValidation) XXX_Size ¶
func (m *ChaincodeValidation) XXX_Size() int
func (*ChaincodeValidation) XXX_Unmarshal ¶
func (m *ChaincodeValidation) XXX_Unmarshal(b []byte) error
type ChannelInfo ¶
type ChannelInfo struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
channelinfo包含有关频道的常规信息
func (*ChannelInfo) Descriptor ¶
func (*ChannelInfo) Descriptor() ([]byte, []int)
func (*ChannelInfo) GetChannelId ¶
func (m *ChannelInfo) GetChannelId() string
func (*ChannelInfo) ProtoMessage ¶
func (*ChannelInfo) ProtoMessage()
func (*ChannelInfo) Reset ¶
func (m *ChannelInfo) Reset()
func (*ChannelInfo) String ¶
func (m *ChannelInfo) String() string
func (*ChannelInfo) XXX_DiscardUnknown ¶
func (m *ChannelInfo) XXX_DiscardUnknown()
func (*ChannelInfo) XXX_Marshal ¶
func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelInfo) XXX_Merge ¶
func (dst *ChannelInfo) XXX_Merge(src proto.Message)
func (*ChannelInfo) XXX_Size ¶
func (m *ChannelInfo) XXX_Size() int
func (*ChannelInfo) XXX_Unmarshal ¶
func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
type ChannelQueryResponse ¶
type ChannelQueryResponse struct { Channels []*ChannelInfo `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
channelqueryresponse返回与之相关的每个通道的信息 到lscc.go中的查询,如getchannels(返回 给定对等体
func (*ChannelQueryResponse) Descriptor ¶
func (*ChannelQueryResponse) Descriptor() ([]byte, []int)
func (*ChannelQueryResponse) GetChannels ¶
func (m *ChannelQueryResponse) GetChannels() []*ChannelInfo
func (*ChannelQueryResponse) ProtoMessage ¶
func (*ChannelQueryResponse) ProtoMessage()
func (*ChannelQueryResponse) Reset ¶
func (m *ChannelQueryResponse) Reset()
func (*ChannelQueryResponse) String ¶
func (m *ChannelQueryResponse) String() string
func (*ChannelQueryResponse) XXX_DiscardUnknown ¶
func (m *ChannelQueryResponse) XXX_DiscardUnknown()
func (*ChannelQueryResponse) XXX_Marshal ¶
func (m *ChannelQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelQueryResponse) XXX_Merge ¶
func (dst *ChannelQueryResponse) XXX_Merge(src proto.Message)
func (*ChannelQueryResponse) XXX_Size ¶
func (m *ChannelQueryResponse) XXX_Size() int
func (*ChannelQueryResponse) XXX_Unmarshal ¶
func (m *ChannelQueryResponse) XXX_Unmarshal(b []byte) error
type ConfidentialityLevel ¶
type ConfidentialityLevel int32
保密等级
const ( ConfidentialityLevel_PUBLIC ConfidentialityLevel = 0 ConfidentialityLevel_CONFIDENTIAL ConfidentialityLevel = 1 )
func (ConfidentialityLevel) EnumDescriptor ¶
func (ConfidentialityLevel) EnumDescriptor() ([]byte, []int)
func (ConfidentialityLevel) String ¶
func (x ConfidentialityLevel) String() string
type ConfigTree ¶
type ConfigTree struct { ChannelConfig *common.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"` ResourcesConfig *common.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig,proto3" json:"resources_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
configtree封装通道和通道的资源配置。 两种配置都表示为common.config
func (*ConfigTree) Descriptor ¶
func (*ConfigTree) Descriptor() ([]byte, []int)
func (*ConfigTree) GetChannelConfig ¶
func (m *ConfigTree) GetChannelConfig() *common.Config
func (*ConfigTree) GetResourcesConfig ¶
func (m *ConfigTree) GetResourcesConfig() *common.Config
func (*ConfigTree) ProtoMessage ¶
func (*ConfigTree) ProtoMessage()
func (*ConfigTree) Reset ¶
func (m *ConfigTree) Reset()
func (*ConfigTree) String ¶
func (m *ConfigTree) String() string
func (*ConfigTree) XXX_DiscardUnknown ¶
func (m *ConfigTree) XXX_DiscardUnknown()
func (*ConfigTree) XXX_Marshal ¶
func (m *ConfigTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigTree) XXX_Merge ¶
func (dst *ConfigTree) XXX_Merge(src proto.Message)
func (*ConfigTree) XXX_Size ¶
func (m *ConfigTree) XXX_Size() int
func (*ConfigTree) XXX_Unmarshal ¶
func (m *ConfigTree) XXX_Unmarshal(b []byte) error
type DelState ¶
type DelState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
delstate是chaincodemessage的有效负载。它包含一把钥匙, 需要在事务的写入集中记录为删除操作。 如果指定了集合,则需要在 事务的私有写入设置为删除操作。
func (*DelState) Descriptor ¶
func (*DelState) GetCollection ¶
func (*DelState) ProtoMessage ¶
func (*DelState) ProtoMessage()
func (*DelState) XXX_DiscardUnknown ¶
func (m *DelState) XXX_DiscardUnknown()
func (*DelState) XXX_Marshal ¶
func (*DelState) XXX_Unmarshal ¶
type DeliverClient ¶
type DeliverClient interface { //Deliver First需要AB类型的信封。使用 //作为已封送的医嘱者的有效负载数据。seekinfo消息, //然后接收一系列的块回复 Deliver(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverClient, error) //Deliver First需要AB类型的信封。使用 //作为已封送的医嘱者的有效负载数据。seekinfo消息, //然后会收到一个**过滤**块回复流。 DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (Deliver_DeliverFilteredClient, error) }
DeliverClient是用于交付服务的客户端API。
有关CTX使用和关闭/结束流式RPC的语义,请参阅https://godoc.org/google.golang.org/grpc clientconn.newstream。
func NewDeliverClient ¶
func NewDeliverClient(cc *grpc.ClientConn) DeliverClient
type DeliverResponse ¶
type DeliverResponse struct { //有效分配给类型的类型: //*交付响应\状态 //*DeliverResponse_块 //*deliverresponse_filteredblock Type isDeliverResponse_Type `protobuf_oneof:"Type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
交付响应
func (*DeliverResponse) Descriptor ¶
func (*DeliverResponse) Descriptor() ([]byte, []int)
func (*DeliverResponse) GetBlock ¶
func (m *DeliverResponse) GetBlock() *common.Block
func (*DeliverResponse) GetFilteredBlock ¶
func (m *DeliverResponse) GetFilteredBlock() *FilteredBlock
func (*DeliverResponse) GetStatus ¶
func (m *DeliverResponse) GetStatus() common.Status
func (*DeliverResponse) GetType ¶
func (m *DeliverResponse) GetType() isDeliverResponse_Type
func (*DeliverResponse) ProtoMessage ¶
func (*DeliverResponse) ProtoMessage()
func (*DeliverResponse) Reset ¶
func (m *DeliverResponse) Reset()
func (*DeliverResponse) String ¶
func (m *DeliverResponse) String() string
func (*DeliverResponse) XXX_DiscardUnknown ¶
func (m *DeliverResponse) XXX_DiscardUnknown()
func (*DeliverResponse) XXX_Marshal ¶
func (m *DeliverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeliverResponse) XXX_Merge ¶
func (dst *DeliverResponse) XXX_Merge(src proto.Message)
func (*DeliverResponse) XXX_OneofFuncs ¶
func (*DeliverResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*DeliverResponse) XXX_Size ¶
func (m *DeliverResponse) XXX_Size() int
func (*DeliverResponse) XXX_Unmarshal ¶
func (m *DeliverResponse) XXX_Unmarshal(b []byte) error
type DeliverResponse_Block ¶
type DeliverResponse_FilteredBlock ¶
type DeliverResponse_FilteredBlock struct {
FilteredBlock *FilteredBlock `protobuf:"bytes,3,opt,name=filtered_block,json=filteredBlock,proto3,oneof"`
}
type DeliverResponse_Status ¶
type DeliverServer ¶
type DeliverServer interface { //Deliver First需要AB类型的信封。使用 //作为已封送的医嘱者的有效负载数据。seekinfo消息, //然后接收一系列的块回复 Deliver(Deliver_DeliverServer) error //Deliver First需要AB类型的信封。使用 //作为已封送的医嘱者的有效负载数据。seekinfo消息, //然后会收到一个**过滤**块回复流。 DeliverFiltered(Deliver_DeliverFilteredServer) error }
DeliverServer是用于传递服务的服务器API。
type Deliver_DeliverClient ¶
type Deliver_DeliverClient interface { Send(*common.Envelope) error Recv() (*DeliverResponse, error) grpc.ClientStream }
type Deliver_DeliverFilteredClient ¶
type Deliver_DeliverFilteredClient interface { Send(*common.Envelope) error Recv() (*DeliverResponse, error) grpc.ClientStream }
type Deliver_DeliverFilteredServer ¶
type Deliver_DeliverFilteredServer interface { Send(*DeliverResponse) error Recv() (*common.Envelope, error) grpc.ServerStream }
type Deliver_DeliverServer ¶
type Deliver_DeliverServer interface { Send(*DeliverResponse) error Recv() (*common.Envelope, error) grpc.ServerStream }
type DynamicApplicationConfigValue ¶
type DynamicApplicationConfigValue struct { *common.ConfigValue // contains filtered or unexported fields }
func (*DynamicApplicationConfigValue) VariablyOpaqueFieldProto ¶
func (ccv *DynamicApplicationConfigValue) VariablyOpaqueFieldProto(name string) (proto.Message, error)
type DynamicApplicationGroup ¶
type DynamicApplicationGroup struct {
*common.ConfigGroup
}
func (*DynamicApplicationGroup) DynamicMapFieldProto ¶
type DynamicApplicationGroupFactory ¶
type DynamicApplicationGroupFactory struct{}
func (DynamicApplicationGroupFactory) DynamicConfigGroup ¶
func (dagf DynamicApplicationGroupFactory) DynamicConfigGroup(cg *common.ConfigGroup) proto.Message
type DynamicApplicationOrgConfigValue ¶
type DynamicApplicationOrgConfigValue struct { *common.ConfigValue // contains filtered or unexported fields }
func (*DynamicApplicationOrgConfigValue) VariablyOpaqueFieldProto ¶
func (daocv *DynamicApplicationOrgConfigValue) VariablyOpaqueFieldProto(name string) (proto.Message, error)
type DynamicApplicationOrgGroup ¶
type DynamicApplicationOrgGroup struct {
*common.ConfigGroup
}
func (*DynamicApplicationOrgGroup) DynamicMapFieldProto ¶
type Endorsement ¶
type Endorsement struct { //背书人的身份(例如其证书) Endorser []byte `protobuf:"bytes,1,opt,name=endorser,proto3" json:"endorser,omitempty"` //ProposalResponse中包含的有效载荷的签名,与 //背书人证书;即签名(proposalResponse.Payload+背书人) Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
背书是背书人在提案回复上的签名。通过 背书人在发出背书信息时,暗地“批准”了 提案响应和其中包含的行动。何时足够 已收集背书,可以从 一组建议响应。请注意,此邮件只包含一个标识 一个签名,但没有签名的有效载荷。这是故意的,因为 背书应该在交易中收集,它们都是 预计将批准一个提案响应/行动(许多批准 在单个提案响应上)
func (*Endorsement) Descriptor ¶
func (*Endorsement) Descriptor() ([]byte, []int)
func (*Endorsement) GetEndorser ¶
func (m *Endorsement) GetEndorser() []byte
func (*Endorsement) GetSignature ¶
func (m *Endorsement) GetSignature() []byte
func (*Endorsement) ProtoMessage ¶
func (*Endorsement) ProtoMessage()
func (*Endorsement) Reset ¶
func (m *Endorsement) Reset()
func (*Endorsement) String ¶
func (m *Endorsement) String() string
func (*Endorsement) XXX_DiscardUnknown ¶
func (m *Endorsement) XXX_DiscardUnknown()
func (*Endorsement) XXX_Marshal ¶
func (m *Endorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Endorsement) XXX_Merge ¶
func (dst *Endorsement) XXX_Merge(src proto.Message)
func (*Endorsement) XXX_Size ¶
func (m *Endorsement) XXX_Size() int
func (*Endorsement) XXX_Unmarshal ¶
func (m *Endorsement) XXX_Unmarshal(b []byte) error
type EndorserClient ¶
type EndorserClient interface {
ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error)
}
背书人客户端是背书人服务的客户端API。
有关CTX使用和关闭/结束流式RPC的语义,请参阅https://godoc.org/google.golang.org/grpc clientconn.newstream。
func NewEndorserClient ¶
func NewEndorserClient(cc *grpc.ClientConn) EndorserClient
type EndorserServer ¶
type EndorserServer interface {
ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error)
}
背书服务器是背书服务的服务器API。
type FilteredBlock ¶
type FilteredBlock struct { ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` FilteredTransactions []*FilteredTransaction `protobuf:"bytes,4,rep,name=filtered_transactions,json=filteredTransactions,proto3" json:"filtered_transactions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
filteredblock是关于块的最小信息集
func (*FilteredBlock) Descriptor ¶
func (*FilteredBlock) Descriptor() ([]byte, []int)
func (*FilteredBlock) GetChannelId ¶
func (m *FilteredBlock) GetChannelId() string
func (*FilteredBlock) GetFilteredTransactions ¶
func (m *FilteredBlock) GetFilteredTransactions() []*FilteredTransaction
func (*FilteredBlock) GetNumber ¶
func (m *FilteredBlock) GetNumber() uint64
func (*FilteredBlock) ProtoMessage ¶
func (*FilteredBlock) ProtoMessage()
func (*FilteredBlock) Reset ¶
func (m *FilteredBlock) Reset()
func (*FilteredBlock) String ¶
func (m *FilteredBlock) String() string
func (*FilteredBlock) XXX_DiscardUnknown ¶
func (m *FilteredBlock) XXX_DiscardUnknown()
func (*FilteredBlock) XXX_Marshal ¶
func (m *FilteredBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilteredBlock) XXX_Merge ¶
func (dst *FilteredBlock) XXX_Merge(src proto.Message)
func (*FilteredBlock) XXX_Size ¶
func (m *FilteredBlock) XXX_Size() int
func (*FilteredBlock) XXX_Unmarshal ¶
func (m *FilteredBlock) XXX_Unmarshal(b []byte) error
type FilteredChaincodeAction ¶
type FilteredChaincodeAction struct { ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,1,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
filteredchaincodeaction是有关操作的最小信息集 在交易中
func (*FilteredChaincodeAction) Descriptor ¶
func (*FilteredChaincodeAction) Descriptor() ([]byte, []int)
func (*FilteredChaincodeAction) GetChaincodeEvent ¶
func (m *FilteredChaincodeAction) GetChaincodeEvent() *ChaincodeEvent
func (*FilteredChaincodeAction) ProtoMessage ¶
func (*FilteredChaincodeAction) ProtoMessage()
func (*FilteredChaincodeAction) Reset ¶
func (m *FilteredChaincodeAction) Reset()
func (*FilteredChaincodeAction) String ¶
func (m *FilteredChaincodeAction) String() string
func (*FilteredChaincodeAction) XXX_DiscardUnknown ¶
func (m *FilteredChaincodeAction) XXX_DiscardUnknown()
func (*FilteredChaincodeAction) XXX_Marshal ¶
func (m *FilteredChaincodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilteredChaincodeAction) XXX_Merge ¶
func (dst *FilteredChaincodeAction) XXX_Merge(src proto.Message)
func (*FilteredChaincodeAction) XXX_Size ¶
func (m *FilteredChaincodeAction) XXX_Size() int
func (*FilteredChaincodeAction) XXX_Unmarshal ¶
func (m *FilteredChaincodeAction) XXX_Unmarshal(b []byte) error
type FilteredTransaction ¶
type FilteredTransaction struct { Txid string `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Type common.HeaderType `protobuf:"varint,2,opt,name=type,proto3,enum=common.HeaderType" json:"type,omitempty"` TxValidationCode TxValidationCode `` /* 141-byte string literal not displayed */ //有效分配给数据的类型: //*过滤交易 Data isFilteredTransaction_Data `protobuf_oneof:"Data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
filteredTransaction是有关事务的最小信息集 块内
func (*FilteredTransaction) Descriptor ¶
func (*FilteredTransaction) Descriptor() ([]byte, []int)
func (*FilteredTransaction) GetData ¶
func (m *FilteredTransaction) GetData() isFilteredTransaction_Data
func (*FilteredTransaction) GetTransactionActions ¶
func (m *FilteredTransaction) GetTransactionActions() *FilteredTransactionActions
func (*FilteredTransaction) GetTxValidationCode ¶
func (m *FilteredTransaction) GetTxValidationCode() TxValidationCode
func (*FilteredTransaction) GetTxid ¶
func (m *FilteredTransaction) GetTxid() string
func (*FilteredTransaction) GetType ¶
func (m *FilteredTransaction) GetType() common.HeaderType
func (*FilteredTransaction) ProtoMessage ¶
func (*FilteredTransaction) ProtoMessage()
func (*FilteredTransaction) Reset ¶
func (m *FilteredTransaction) Reset()
func (*FilteredTransaction) String ¶
func (m *FilteredTransaction) String() string
func (*FilteredTransaction) XXX_DiscardUnknown ¶
func (m *FilteredTransaction) XXX_DiscardUnknown()
func (*FilteredTransaction) XXX_Marshal ¶
func (m *FilteredTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilteredTransaction) XXX_Merge ¶
func (dst *FilteredTransaction) XXX_Merge(src proto.Message)
func (*FilteredTransaction) XXX_OneofFuncs ¶
func (*FilteredTransaction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
xxxoneoffuncs用于Proto包的内部使用。
func (*FilteredTransaction) XXX_Size ¶
func (m *FilteredTransaction) XXX_Size() int
func (*FilteredTransaction) XXX_Unmarshal ¶
func (m *FilteredTransaction) XXX_Unmarshal(b []byte) error
type FilteredTransactionActions ¶
type FilteredTransactionActions struct { ChaincodeActions []*FilteredChaincodeAction `protobuf:"bytes,1,rep,name=chaincode_actions,json=chaincodeActions,proto3" json:"chaincode_actions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
filteredTransactionActions是TransactionAction数组的包装器 来自常规块的消息
func (*FilteredTransactionActions) Descriptor ¶
func (*FilteredTransactionActions) Descriptor() ([]byte, []int)
func (*FilteredTransactionActions) GetChaincodeActions ¶
func (m *FilteredTransactionActions) GetChaincodeActions() []*FilteredChaincodeAction
func (*FilteredTransactionActions) ProtoMessage ¶
func (*FilteredTransactionActions) ProtoMessage()
func (*FilteredTransactionActions) Reset ¶
func (m *FilteredTransactionActions) Reset()
func (*FilteredTransactionActions) String ¶
func (m *FilteredTransactionActions) String() string
func (*FilteredTransactionActions) XXX_DiscardUnknown ¶
func (m *FilteredTransactionActions) XXX_DiscardUnknown()
func (*FilteredTransactionActions) XXX_Marshal ¶
func (m *FilteredTransactionActions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilteredTransactionActions) XXX_Merge ¶
func (dst *FilteredTransactionActions) XXX_Merge(src proto.Message)
func (*FilteredTransactionActions) XXX_Size ¶
func (m *FilteredTransactionActions) XXX_Size() int
func (*FilteredTransactionActions) XXX_Unmarshal ¶
func (m *FilteredTransactionActions) XXX_Unmarshal(b []byte) error
type FilteredTransaction_TransactionActions ¶
type FilteredTransaction_TransactionActions struct {
TransactionActions *FilteredTransactionActions `protobuf:"bytes,4,opt,name=transaction_actions,json=transactionActions,proto3,oneof"`
}
type GetHistoryForKey ¶
type GetHistoryForKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetHistoryForkey是链式代码消息的有效负载。它包含一把钥匙 需要检索历史值。
func (*GetHistoryForKey) Descriptor ¶
func (*GetHistoryForKey) Descriptor() ([]byte, []int)
func (*GetHistoryForKey) GetKey ¶
func (m *GetHistoryForKey) GetKey() string
func (*GetHistoryForKey) ProtoMessage ¶
func (*GetHistoryForKey) ProtoMessage()
func (*GetHistoryForKey) Reset ¶
func (m *GetHistoryForKey) Reset()
func (*GetHistoryForKey) String ¶
func (m *GetHistoryForKey) String() string
func (*GetHistoryForKey) XXX_DiscardUnknown ¶
func (m *GetHistoryForKey) XXX_DiscardUnknown()
func (*GetHistoryForKey) XXX_Marshal ¶
func (m *GetHistoryForKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetHistoryForKey) XXX_Merge ¶
func (dst *GetHistoryForKey) XXX_Merge(src proto.Message)
func (*GetHistoryForKey) XXX_Size ¶
func (m *GetHistoryForKey) XXX_Size() int
func (*GetHistoryForKey) XXX_Unmarshal ¶
func (m *GetHistoryForKey) XXX_Unmarshal(b []byte) error
type GetQueryResult ¶
type GetQueryResult struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetQueryResult是chaincodeMessage的有效负载。它包含一个查询 基础状态数据库支持的窗体中的字符串。 如果指定了集合,则需要在 私有数据。元数据包含querymetadata的字节表示形式。
func (*GetQueryResult) Descriptor ¶
func (*GetQueryResult) Descriptor() ([]byte, []int)
func (*GetQueryResult) GetCollection ¶
func (m *GetQueryResult) GetCollection() string
func (*GetQueryResult) GetMetadata ¶
func (m *GetQueryResult) GetMetadata() []byte
func (*GetQueryResult) GetQuery ¶
func (m *GetQueryResult) GetQuery() string
func (*GetQueryResult) ProtoMessage ¶
func (*GetQueryResult) ProtoMessage()
func (*GetQueryResult) Reset ¶
func (m *GetQueryResult) Reset()
func (*GetQueryResult) String ¶
func (m *GetQueryResult) String() string
func (*GetQueryResult) XXX_DiscardUnknown ¶
func (m *GetQueryResult) XXX_DiscardUnknown()
func (*GetQueryResult) XXX_Marshal ¶
func (m *GetQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetQueryResult) XXX_Merge ¶
func (dst *GetQueryResult) XXX_Merge(src proto.Message)
func (*GetQueryResult) XXX_Size ¶
func (m *GetQueryResult) XXX_Size() int
func (*GetQueryResult) XXX_Unmarshal ¶
func (m *GetQueryResult) XXX_Unmarshal(b []byte) error
type GetState ¶
type GetState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetState是链式代码消息的有效负载。它包含一把钥匙, 将从分类帐中提取。如果指定了集合,则键 将从集合中提取(即,私有状态)
func (*GetState) Descriptor ¶
func (*GetState) GetCollection ¶
func (*GetState) ProtoMessage ¶
func (*GetState) ProtoMessage()
func (*GetState) XXX_DiscardUnknown ¶
func (m *GetState) XXX_DiscardUnknown()
func (*GetState) XXX_Marshal ¶
func (*GetState) XXX_Unmarshal ¶
type GetStateByRange ¶
type GetStateByRange struct { StartKey string `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"` EndKey string `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetStateByRange是链式代码消息的有效负载。它包含一个开始键和 执行范围查询所需的结束键。如果指定了集合, 需要对私有数据执行范围查询。元数据保留 querymetadata的字节表示形式。
func (*GetStateByRange) Descriptor ¶
func (*GetStateByRange) Descriptor() ([]byte, []int)
func (*GetStateByRange) GetCollection ¶
func (m *GetStateByRange) GetCollection() string
func (*GetStateByRange) GetEndKey ¶
func (m *GetStateByRange) GetEndKey() string
func (*GetStateByRange) GetMetadata ¶
func (m *GetStateByRange) GetMetadata() []byte
func (*GetStateByRange) GetStartKey ¶
func (m *GetStateByRange) GetStartKey() string
func (*GetStateByRange) ProtoMessage ¶
func (*GetStateByRange) ProtoMessage()
func (*GetStateByRange) Reset ¶
func (m *GetStateByRange) Reset()
func (*GetStateByRange) String ¶
func (m *GetStateByRange) String() string
func (*GetStateByRange) XXX_DiscardUnknown ¶
func (m *GetStateByRange) XXX_DiscardUnknown()
func (*GetStateByRange) XXX_Marshal ¶
func (m *GetStateByRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStateByRange) XXX_Merge ¶
func (dst *GetStateByRange) XXX_Merge(src proto.Message)
func (*GetStateByRange) XXX_Size ¶
func (m *GetStateByRange) XXX_Size() int
func (*GetStateByRange) XXX_Unmarshal ¶
func (m *GetStateByRange) XXX_Unmarshal(b []byte) error
type GetStateMetadata ¶
type GetStateMetadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetStateMetadata) Descriptor ¶
func (*GetStateMetadata) Descriptor() ([]byte, []int)
func (*GetStateMetadata) GetCollection ¶
func (m *GetStateMetadata) GetCollection() string
func (*GetStateMetadata) GetKey ¶
func (m *GetStateMetadata) GetKey() string
func (*GetStateMetadata) ProtoMessage ¶
func (*GetStateMetadata) ProtoMessage()
func (*GetStateMetadata) Reset ¶
func (m *GetStateMetadata) Reset()
func (*GetStateMetadata) String ¶
func (m *GetStateMetadata) String() string
func (*GetStateMetadata) XXX_DiscardUnknown ¶
func (m *GetStateMetadata) XXX_DiscardUnknown()
func (*GetStateMetadata) XXX_Marshal ¶
func (m *GetStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetStateMetadata) XXX_Merge ¶
func (dst *GetStateMetadata) XXX_Merge(src proto.Message)
func (*GetStateMetadata) XXX_Size ¶
func (m *GetStateMetadata) XXX_Size() int
func (*GetStateMetadata) XXX_Unmarshal ¶
func (m *GetStateMetadata) XXX_Unmarshal(b []byte) error
type LifecycleEvent ¶
type LifecycleEvent struct { ChaincodeName string `protobuf:"bytes,1,opt,name=chaincode_name,json=chaincodeName,proto3" json:"chaincode_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LifecycleEvent用作LSCC发出的链码事件的有效负载。
func (*LifecycleEvent) Descriptor ¶
func (*LifecycleEvent) Descriptor() ([]byte, []int)
func (*LifecycleEvent) GetChaincodeName ¶
func (m *LifecycleEvent) GetChaincodeName() string
func (*LifecycleEvent) ProtoMessage ¶
func (*LifecycleEvent) ProtoMessage()
func (*LifecycleEvent) Reset ¶
func (m *LifecycleEvent) Reset()
func (*LifecycleEvent) String ¶
func (m *LifecycleEvent) String() string
func (*LifecycleEvent) XXX_DiscardUnknown ¶
func (m *LifecycleEvent) XXX_DiscardUnknown()
func (*LifecycleEvent) XXX_Marshal ¶
func (m *LifecycleEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LifecycleEvent) XXX_Merge ¶
func (dst *LifecycleEvent) XXX_Merge(src proto.Message)
func (*LifecycleEvent) XXX_Size ¶
func (m *LifecycleEvent) XXX_Size() int
func (*LifecycleEvent) XXX_Unmarshal ¶
func (m *LifecycleEvent) XXX_Unmarshal(b []byte) error
type LogLevelRequest ¶
type LogLevelRequest struct { LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule,proto3" json:"log_module,omitempty"` LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogLevelRequest) Descriptor ¶
func (*LogLevelRequest) Descriptor() ([]byte, []int)
func (*LogLevelRequest) GetLogLevel ¶
func (m *LogLevelRequest) GetLogLevel() string
func (*LogLevelRequest) GetLogModule ¶
func (m *LogLevelRequest) GetLogModule() string
func (*LogLevelRequest) ProtoMessage ¶
func (*LogLevelRequest) ProtoMessage()
func (*LogLevelRequest) Reset ¶
func (m *LogLevelRequest) Reset()
func (*LogLevelRequest) String ¶
func (m *LogLevelRequest) String() string
func (*LogLevelRequest) XXX_DiscardUnknown ¶
func (m *LogLevelRequest) XXX_DiscardUnknown()
func (*LogLevelRequest) XXX_Marshal ¶
func (m *LogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogLevelRequest) XXX_Merge ¶
func (dst *LogLevelRequest) XXX_Merge(src proto.Message)
func (*LogLevelRequest) XXX_Size ¶
func (m *LogLevelRequest) XXX_Size() int
func (*LogLevelRequest) XXX_Unmarshal ¶
func (m *LogLevelRequest) XXX_Unmarshal(b []byte) error
type LogLevelResponse ¶
type LogLevelResponse struct { LogModule string `protobuf:"bytes,1,opt,name=log_module,json=logModule,proto3" json:"log_module,omitempty"` LogLevel string `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogLevelResponse) Descriptor ¶
func (*LogLevelResponse) Descriptor() ([]byte, []int)
func (*LogLevelResponse) GetLogLevel ¶
func (m *LogLevelResponse) GetLogLevel() string
func (*LogLevelResponse) GetLogModule ¶
func (m *LogLevelResponse) GetLogModule() string
func (*LogLevelResponse) ProtoMessage ¶
func (*LogLevelResponse) ProtoMessage()
func (*LogLevelResponse) Reset ¶
func (m *LogLevelResponse) Reset()
func (*LogLevelResponse) String ¶
func (m *LogLevelResponse) String() string
func (*LogLevelResponse) XXX_DiscardUnknown ¶
func (m *LogLevelResponse) XXX_DiscardUnknown()
func (*LogLevelResponse) XXX_Marshal ¶
func (m *LogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogLevelResponse) XXX_Merge ¶
func (dst *LogLevelResponse) XXX_Merge(src proto.Message)
func (*LogLevelResponse) XXX_Size ¶
func (m *LogLevelResponse) XXX_Size() int
func (*LogLevelResponse) XXX_Unmarshal ¶
func (m *LogLevelResponse) XXX_Unmarshal(b []byte) error
type LogSpecRequest ¶
type LogSpecRequest struct { LogSpec string `protobuf:"bytes,1,opt,name=log_spec,json=logSpec,proto3" json:"log_spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogSpecRequest) Descriptor ¶
func (*LogSpecRequest) Descriptor() ([]byte, []int)
func (*LogSpecRequest) GetLogSpec ¶
func (m *LogSpecRequest) GetLogSpec() string
func (*LogSpecRequest) ProtoMessage ¶
func (*LogSpecRequest) ProtoMessage()
func (*LogSpecRequest) Reset ¶
func (m *LogSpecRequest) Reset()
func (*LogSpecRequest) String ¶
func (m *LogSpecRequest) String() string
func (*LogSpecRequest) XXX_DiscardUnknown ¶
func (m *LogSpecRequest) XXX_DiscardUnknown()
func (*LogSpecRequest) XXX_Marshal ¶
func (m *LogSpecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogSpecRequest) XXX_Merge ¶
func (dst *LogSpecRequest) XXX_Merge(src proto.Message)
func (*LogSpecRequest) XXX_Size ¶
func (m *LogSpecRequest) XXX_Size() int
func (*LogSpecRequest) XXX_Unmarshal ¶
func (m *LogSpecRequest) XXX_Unmarshal(b []byte) error
type LogSpecResponse ¶
type LogSpecResponse struct { LogSpec string `protobuf:"bytes,1,opt,name=log_spec,json=logSpec,proto3" json:"log_spec,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogSpecResponse) Descriptor ¶
func (*LogSpecResponse) Descriptor() ([]byte, []int)
func (*LogSpecResponse) GetError ¶
func (m *LogSpecResponse) GetError() string
func (*LogSpecResponse) GetLogSpec ¶
func (m *LogSpecResponse) GetLogSpec() string
func (*LogSpecResponse) ProtoMessage ¶
func (*LogSpecResponse) ProtoMessage()
func (*LogSpecResponse) Reset ¶
func (m *LogSpecResponse) Reset()
func (*LogSpecResponse) String ¶
func (m *LogSpecResponse) String() string
func (*LogSpecResponse) XXX_DiscardUnknown ¶
func (m *LogSpecResponse) XXX_DiscardUnknown()
func (*LogSpecResponse) XXX_Marshal ¶
func (m *LogSpecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogSpecResponse) XXX_Merge ¶
func (dst *LogSpecResponse) XXX_Merge(src proto.Message)
func (*LogSpecResponse) XXX_Size ¶
func (m *LogSpecResponse) XXX_Size() int
func (*LogSpecResponse) XXX_Unmarshal ¶
func (m *LogSpecResponse) XXX_Unmarshal(b []byte) error
type MetaDataKeys ¶
type MetaDataKeys int32
键级元数据映射中的保留项
const (
MetaDataKeys_VALIDATION_PARAMETER MetaDataKeys = 0
)
func (MetaDataKeys) EnumDescriptor ¶
func (MetaDataKeys) EnumDescriptor() ([]byte, []int)
func (MetaDataKeys) String ¶
func (x MetaDataKeys) String() string
type PeerEndpoint ¶
type PeerEndpoint struct { Id *PeerID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerEndpoint) Descriptor ¶
func (*PeerEndpoint) Descriptor() ([]byte, []int)
func (*PeerEndpoint) GetAddress ¶
func (m *PeerEndpoint) GetAddress() string
func (*PeerEndpoint) GetId ¶
func (m *PeerEndpoint) GetId() *PeerID
func (*PeerEndpoint) ProtoMessage ¶
func (*PeerEndpoint) ProtoMessage()
func (*PeerEndpoint) Reset ¶
func (m *PeerEndpoint) Reset()
func (*PeerEndpoint) String ¶
func (m *PeerEndpoint) String() string
func (*PeerEndpoint) XXX_DiscardUnknown ¶
func (m *PeerEndpoint) XXX_DiscardUnknown()
func (*PeerEndpoint) XXX_Marshal ¶
func (m *PeerEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerEndpoint) XXX_Merge ¶
func (dst *PeerEndpoint) XXX_Merge(src proto.Message)
func (*PeerEndpoint) XXX_Size ¶
func (m *PeerEndpoint) XXX_Size() int
func (*PeerEndpoint) XXX_Unmarshal ¶
func (m *PeerEndpoint) XXX_Unmarshal(b []byte) error
type PeerID ¶
type PeerID struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerID) Descriptor ¶
func (*PeerID) ProtoMessage ¶
func (*PeerID) ProtoMessage()
func (*PeerID) XXX_DiscardUnknown ¶
func (m *PeerID) XXX_DiscardUnknown()
func (*PeerID) XXX_Marshal ¶
func (*PeerID) XXX_Unmarshal ¶
type ProcessedTransaction ¶
type ProcessedTransaction struct { //包含已处理事务的信封。 TransactionEnvelope *common.Envelope `protobuf:"bytes,1,opt,name=transactionEnvelope,proto3" json:"transactionEnvelope,omitempty"` //通过提交对等方来指示事务是已验证还是已失效。 ValidationCode int32 `protobuf:"varint,2,opt,name=validationCode,proto3" json:"validationCode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
processedTransaction包装一个信封,其中包含一个事务和一个指示 通过提交对等方来验证或使事务无效。 用例是GetTransactionByID API需要检索事务信封 从块存储,并将其返回到客户机,并指示事务 通过提交对等方验证或使其无效。以便最初提交的 未修改事务信封,将返回processedTransaction包装。
func (*ProcessedTransaction) Descriptor ¶
func (*ProcessedTransaction) Descriptor() ([]byte, []int)
func (*ProcessedTransaction) GetTransactionEnvelope ¶
func (m *ProcessedTransaction) GetTransactionEnvelope() *common.Envelope
func (*ProcessedTransaction) GetValidationCode ¶
func (m *ProcessedTransaction) GetValidationCode() int32
func (*ProcessedTransaction) ProtoMessage ¶
func (*ProcessedTransaction) ProtoMessage()
func (*ProcessedTransaction) Reset ¶
func (m *ProcessedTransaction) Reset()
func (*ProcessedTransaction) String ¶
func (m *ProcessedTransaction) String() string
func (*ProcessedTransaction) XXX_DiscardUnknown ¶
func (m *ProcessedTransaction) XXX_DiscardUnknown()
func (*ProcessedTransaction) XXX_Marshal ¶
func (m *ProcessedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProcessedTransaction) XXX_Merge ¶
func (dst *ProcessedTransaction) XXX_Merge(src proto.Message)
func (*ProcessedTransaction) XXX_Size ¶
func (m *ProcessedTransaction) XXX_Size() int
func (*ProcessedTransaction) XXX_Unmarshal ¶
func (m *ProcessedTransaction) XXX_Unmarshal(b []byte) error
type Proposal ¶
type Proposal struct { //提案的标题。它是头的字节 Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` //由建议中的类型定义的建议的有效负载 //标题。 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` //方案的可选扩展。其内容取决于标题的 //类型字段。对于类型chaincode,它可能是 //链码操作消息。 Extension []byte `protobuf:"bytes,3,opt,name=extension,proto3" json:"extension,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
提案被送交背书人背书。提案包括: 1。应解组为头消息的头。注意 header是提议和交易的header,在该i中) 两个邮件头都应与此邮件取消标记;ii)它用于 计算加密散列和签名。标题具有公用字段 所有提案/交易。此外,它还有一个类型字段用于 附加定制。例如chaincodeheaderextension 用于扩展类型chaincode的头的消息。 2。其类型取决于头的类型字段的有效负载。 三。其类型取决于头的类型字段的扩展。
让我们看一个例子。对于类型链码(请参见标题消息)。 我们有以下内容: 1。头是一条头消息,其扩展字段为 链码头扩展消息。 2。有效负载是chaincodeProposalPayLoad消息。 三。扩展是一个可用于请求 背书人背书一个特定的链码动作,从而模仿 提交对等模型。
func (*Proposal) Descriptor ¶
func (*Proposal) GetExtension ¶
func (*Proposal) GetPayload ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) XXX_DiscardUnknown ¶
func (m *Proposal) XXX_DiscardUnknown()
func (*Proposal) XXX_Marshal ¶
func (*Proposal) XXX_Unmarshal ¶
type ProposalResponse ¶
type ProposalResponse struct { //版本表示消息协议版本 Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` //timestamp是消息 //已按发件人的定义创建 Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //一条响应消息,指示 //对该行动的认可是成功的 Response *Response `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"` //响应的有效载荷。它是proposalResponsePayLoad的字节 Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` //对提案的认可,基本上 //背书人在有效载荷上的签名 Endorsement *Endorsement `protobuf:"bytes,6,opt,name=endorsement,proto3" json:"endorsement,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
提案回复由背书人返回给提案提交人。 其想法是,此消息包含背书人对 客户机通过链码(或更多)执行操作的请求 一般在分类帐上);响应可能是成功/错误(在 响应字段)以及操作说明和 背书人在上面签名。如果有足够数量的distinct 背书人同意同一行为,并签字表示同意。 可以生成事务并发送以进行排序。
func (*ProposalResponse) Descriptor ¶
func (*ProposalResponse) Descriptor() ([]byte, []int)
func (*ProposalResponse) GetEndorsement ¶
func (m *ProposalResponse) GetEndorsement() *Endorsement
func (*ProposalResponse) GetPayload ¶
func (m *ProposalResponse) GetPayload() []byte
func (*ProposalResponse) GetResponse ¶
func (m *ProposalResponse) GetResponse() *Response
func (*ProposalResponse) GetTimestamp ¶
func (m *ProposalResponse) GetTimestamp() *timestamp.Timestamp
func (*ProposalResponse) GetVersion ¶
func (m *ProposalResponse) GetVersion() int32
func (*ProposalResponse) ProtoMessage ¶
func (*ProposalResponse) ProtoMessage()
func (*ProposalResponse) Reset ¶
func (m *ProposalResponse) Reset()
func (*ProposalResponse) String ¶
func (m *ProposalResponse) String() string
func (*ProposalResponse) XXX_DiscardUnknown ¶
func (m *ProposalResponse) XXX_DiscardUnknown()
func (*ProposalResponse) XXX_Marshal ¶
func (m *ProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalResponse) XXX_Merge ¶
func (dst *ProposalResponse) XXX_Merge(src proto.Message)
func (*ProposalResponse) XXX_Size ¶
func (m *ProposalResponse) XXX_Size() int
func (*ProposalResponse) XXX_Unmarshal ¶
func (m *ProposalResponse) XXX_Unmarshal(b []byte) error
type ProposalResponsePayload ¶
type ProposalResponsePayload struct { //触发此响应的建议的哈希。哈希用于 //将响应与其建议链接,两者都用于 //异步系统和出于安全原因(问责, //不可否认)。哈希通常覆盖整个建议消息 //(逐字节)。但是,这意味着只能验证哈希 //如果在ProposalResponsePayLoad为 //包括在交易中或存储在分类帐中。为了保密 //原因,使用链代码可能不希望存储建议 //分类帐中的有效负载。如果类型为chaincode,则由 //分离建议的标题和 //有效载荷:头部始终是散列的,而 //有效负载可以完全散列,或者只能散列其散列,或者 //有效载荷中的任何内容都不能散列。中的PayloadVisibility字段 //标题的扩展控制建议有效负载的范围 //在刚才解释的意义上“可见”。 ProposalHash []byte `protobuf:"bytes,1,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"` //扩展名应取消标记为特定于类型的消息。类型 //任何提案响应中的扩展取决于提案的类型 //客户在最初发送建议时选择的。在 //特别是,此信息存储在头的类型字段中。为了 //链码,这是链码动作消息 Extension []byte `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ProposalResponsePayLoad是提案响应的有效负载。此消息 客户的要求与背书人的行为之间的“桥梁”是否 对该请求的响应。具体来说,对于链代码,它包含 提案的陈述(proposalhash)和 扩展字段中的链码状态更改和事件。
func (*ProposalResponsePayload) Descriptor ¶
func (*ProposalResponsePayload) Descriptor() ([]byte, []int)
func (*ProposalResponsePayload) GetExtension ¶
func (m *ProposalResponsePayload) GetExtension() []byte
func (*ProposalResponsePayload) GetProposalHash ¶
func (m *ProposalResponsePayload) GetProposalHash() []byte
func (*ProposalResponsePayload) ProtoMessage ¶
func (*ProposalResponsePayload) ProtoMessage()
func (*ProposalResponsePayload) Reset ¶
func (m *ProposalResponsePayload) Reset()
func (*ProposalResponsePayload) StaticallyOpaqueFieldProto ¶
func (ppr *ProposalResponsePayload) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*ProposalResponsePayload) StaticallyOpaqueFields ¶
func (ppr *ProposalResponsePayload) StaticallyOpaqueFields() []string
func (*ProposalResponsePayload) String ¶
func (m *ProposalResponsePayload) String() string
func (*ProposalResponsePayload) XXX_DiscardUnknown ¶
func (m *ProposalResponsePayload) XXX_DiscardUnknown()
func (*ProposalResponsePayload) XXX_Marshal ¶
func (m *ProposalResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalResponsePayload) XXX_Merge ¶
func (dst *ProposalResponsePayload) XXX_Merge(src proto.Message)
func (*ProposalResponsePayload) XXX_Size ¶
func (m *ProposalResponsePayload) XXX_Size() int
func (*ProposalResponsePayload) XXX_Unmarshal ¶
func (m *ProposalResponsePayload) XXX_Unmarshal(b []byte) error
type PutState ¶
type PutState struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
putstate是chaincodemessage的有效负载。它包含一个键和值 需要写入事务的写入集。如果集合是 指定后,密钥和值将写入事务的私有 写集。
func (*PutState) Descriptor ¶
func (*PutState) GetCollection ¶
func (*PutState) ProtoMessage ¶
func (*PutState) ProtoMessage()
func (*PutState) XXX_DiscardUnknown ¶
func (m *PutState) XXX_DiscardUnknown()
func (*PutState) XXX_Marshal ¶
func (*PutState) XXX_Unmarshal ¶
type PutStateMetadata ¶
type PutStateMetadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` Metadata *StateMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutStateMetadata) Descriptor ¶
func (*PutStateMetadata) Descriptor() ([]byte, []int)
func (*PutStateMetadata) GetCollection ¶
func (m *PutStateMetadata) GetCollection() string
func (*PutStateMetadata) GetKey ¶
func (m *PutStateMetadata) GetKey() string
func (*PutStateMetadata) GetMetadata ¶
func (m *PutStateMetadata) GetMetadata() *StateMetadata
func (*PutStateMetadata) ProtoMessage ¶
func (*PutStateMetadata) ProtoMessage()
func (*PutStateMetadata) Reset ¶
func (m *PutStateMetadata) Reset()
func (*PutStateMetadata) String ¶
func (m *PutStateMetadata) String() string
func (*PutStateMetadata) XXX_DiscardUnknown ¶
func (m *PutStateMetadata) XXX_DiscardUnknown()
func (*PutStateMetadata) XXX_Marshal ¶
func (m *PutStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PutStateMetadata) XXX_Merge ¶
func (dst *PutStateMetadata) XXX_Merge(src proto.Message)
func (*PutStateMetadata) XXX_Size ¶
func (m *PutStateMetadata) XXX_Size() int
func (*PutStateMetadata) XXX_Unmarshal ¶
func (m *PutStateMetadata) XXX_Unmarshal(b []byte) error
type QueryMetadata ¶
type QueryMetadata struct { PageSize int32 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
QueryMetadata是GetStateByRange和GetQueryResult的元数据。 它包含一个页面大小,表示要提取的记录数。 还有书签。
func (*QueryMetadata) Descriptor ¶
func (*QueryMetadata) Descriptor() ([]byte, []int)
func (*QueryMetadata) GetBookmark ¶
func (m *QueryMetadata) GetBookmark() string
func (*QueryMetadata) GetPageSize ¶
func (m *QueryMetadata) GetPageSize() int32
func (*QueryMetadata) ProtoMessage ¶
func (*QueryMetadata) ProtoMessage()
func (*QueryMetadata) Reset ¶
func (m *QueryMetadata) Reset()
func (*QueryMetadata) String ¶
func (m *QueryMetadata) String() string
func (*QueryMetadata) XXX_DiscardUnknown ¶
func (m *QueryMetadata) XXX_DiscardUnknown()
func (*QueryMetadata) XXX_Marshal ¶
func (m *QueryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMetadata) XXX_Merge ¶
func (dst *QueryMetadata) XXX_Merge(src proto.Message)
func (*QueryMetadata) XXX_Size ¶
func (m *QueryMetadata) XXX_Size() int
func (*QueryMetadata) XXX_Unmarshal ¶
func (m *QueryMetadata) XXX_Unmarshal(b []byte) error
type QueryResponse ¶
type QueryResponse struct { Results []*QueryResultBytes `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
对等端作为getStateByRange的结果返回queryResponse, GetQueryResult和GetHistoryForkey。里面有一堆记录 结果字段,指示是否需要从中提取更多结果的标志。 中的对等机具有更多字段、ID字段中的事务ID和QueryResponseMetadata 在元数据字段中。
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) GetHasMore ¶
func (m *QueryResponse) GetHasMore() bool
func (*QueryResponse) GetId ¶
func (m *QueryResponse) GetId() string
func (*QueryResponse) GetMetadata ¶
func (m *QueryResponse) GetMetadata() []byte
func (*QueryResponse) GetResults ¶
func (m *QueryResponse) GetResults() []*QueryResultBytes
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (m *QueryResponse) String() string
func (*QueryResponse) XXX_DiscardUnknown ¶
func (m *QueryResponse) XXX_DiscardUnknown()
func (*QueryResponse) XXX_Marshal ¶
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponse) XXX_Merge ¶
func (dst *QueryResponse) XXX_Merge(src proto.Message)
func (*QueryResponse) XXX_Size ¶
func (m *QueryResponse) XXX_Size() int
func (*QueryResponse) XXX_Unmarshal ¶
func (m *QueryResponse) XXX_Unmarshal(b []byte) error
type QueryResponseMetadata ¶
type QueryResponseMetadata struct { FetchedRecordsCount int32 `protobuf:"varint,1,opt,name=fetched_records_count,json=fetchedRecordsCount,proto3" json:"fetched_records_count,omitempty"` Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
QueryResponseMetadata是QueryResponse的元数据。它包含一个计数 它表示从分类帐和书签中提取的记录数。
func (*QueryResponseMetadata) Descriptor ¶
func (*QueryResponseMetadata) Descriptor() ([]byte, []int)
func (*QueryResponseMetadata) GetBookmark ¶
func (m *QueryResponseMetadata) GetBookmark() string
func (*QueryResponseMetadata) GetFetchedRecordsCount ¶
func (m *QueryResponseMetadata) GetFetchedRecordsCount() int32
func (*QueryResponseMetadata) ProtoMessage ¶
func (*QueryResponseMetadata) ProtoMessage()
func (*QueryResponseMetadata) Reset ¶
func (m *QueryResponseMetadata) Reset()
func (*QueryResponseMetadata) String ¶
func (m *QueryResponseMetadata) String() string
func (*QueryResponseMetadata) XXX_DiscardUnknown ¶
func (m *QueryResponseMetadata) XXX_DiscardUnknown()
func (*QueryResponseMetadata) XXX_Marshal ¶
func (m *QueryResponseMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponseMetadata) XXX_Merge ¶
func (dst *QueryResponseMetadata) XXX_Merge(src proto.Message)
func (*QueryResponseMetadata) XXX_Size ¶
func (m *QueryResponseMetadata) XXX_Size() int
func (*QueryResponseMetadata) XXX_Unmarshal ¶
func (m *QueryResponseMetadata) XXX_Unmarshal(b []byte) error
type QueryResultBytes ¶
type QueryResultBytes struct { ResultBytes []byte `protobuf:"bytes,1,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
queryresultBytes保留对等方返回的记录的字节表示形式。
func (*QueryResultBytes) Descriptor ¶
func (*QueryResultBytes) Descriptor() ([]byte, []int)
func (*QueryResultBytes) GetResultBytes ¶
func (m *QueryResultBytes) GetResultBytes() []byte
func (*QueryResultBytes) ProtoMessage ¶
func (*QueryResultBytes) ProtoMessage()
func (*QueryResultBytes) Reset ¶
func (m *QueryResultBytes) Reset()
func (*QueryResultBytes) String ¶
func (m *QueryResultBytes) String() string
func (*QueryResultBytes) XXX_DiscardUnknown ¶
func (m *QueryResultBytes) XXX_DiscardUnknown()
func (*QueryResultBytes) XXX_Marshal ¶
func (m *QueryResultBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResultBytes) XXX_Merge ¶
func (dst *QueryResultBytes) XXX_Merge(src proto.Message)
func (*QueryResultBytes) XXX_Size ¶
func (m *QueryResultBytes) XXX_Size() int
func (*QueryResultBytes) XXX_Unmarshal ¶
func (m *QueryResultBytes) XXX_Unmarshal(b []byte) error
type QueryStateClose ¶
type QueryStateClose struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryStateClose) Descriptor ¶
func (*QueryStateClose) Descriptor() ([]byte, []int)
func (*QueryStateClose) GetId ¶
func (m *QueryStateClose) GetId() string
func (*QueryStateClose) ProtoMessage ¶
func (*QueryStateClose) ProtoMessage()
func (*QueryStateClose) Reset ¶
func (m *QueryStateClose) Reset()
func (*QueryStateClose) String ¶
func (m *QueryStateClose) String() string
func (*QueryStateClose) XXX_DiscardUnknown ¶
func (m *QueryStateClose) XXX_DiscardUnknown()
func (*QueryStateClose) XXX_Marshal ¶
func (m *QueryStateClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryStateClose) XXX_Merge ¶
func (dst *QueryStateClose) XXX_Merge(src proto.Message)
func (*QueryStateClose) XXX_Size ¶
func (m *QueryStateClose) XXX_Size() int
func (*QueryStateClose) XXX_Unmarshal ¶
func (m *QueryStateClose) XXX_Unmarshal(b []byte) error
type QueryStateNext ¶
type QueryStateNext struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryStateNext) Descriptor ¶
func (*QueryStateNext) Descriptor() ([]byte, []int)
func (*QueryStateNext) GetId ¶
func (m *QueryStateNext) GetId() string
func (*QueryStateNext) ProtoMessage ¶
func (*QueryStateNext) ProtoMessage()
func (*QueryStateNext) Reset ¶
func (m *QueryStateNext) Reset()
func (*QueryStateNext) String ¶
func (m *QueryStateNext) String() string
func (*QueryStateNext) XXX_DiscardUnknown ¶
func (m *QueryStateNext) XXX_DiscardUnknown()
func (*QueryStateNext) XXX_Marshal ¶
func (m *QueryStateNext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryStateNext) XXX_Merge ¶
func (dst *QueryStateNext) XXX_Merge(src proto.Message)
func (*QueryStateNext) XXX_Size ¶
func (m *QueryStateNext) XXX_Size() int
func (*QueryStateNext) XXX_Unmarshal ¶
func (m *QueryStateNext) XXX_Unmarshal(b []byte) error
type Response ¶
type Response struct { //应遵循HTTP状态代码的状态代码。 Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` //与响应代码关联的消息。 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //可用于将元数据包含在此响应中的有效负载。 Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
具有类似于HTTP响应的表示形式的响应,可以 在另一条消息中使用。
func (*Response) Descriptor ¶
func (*Response) GetMessage ¶
func (*Response) GetPayload ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type ServerStatus ¶
type ServerStatus struct { Status ServerStatus_StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=protos.ServerStatus_StatusCode" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServerStatus) Descriptor ¶
func (*ServerStatus) Descriptor() ([]byte, []int)
func (*ServerStatus) GetStatus ¶
func (m *ServerStatus) GetStatus() ServerStatus_StatusCode
func (*ServerStatus) ProtoMessage ¶
func (*ServerStatus) ProtoMessage()
func (*ServerStatus) Reset ¶
func (m *ServerStatus) Reset()
func (*ServerStatus) String ¶
func (m *ServerStatus) String() string
func (*ServerStatus) XXX_DiscardUnknown ¶
func (m *ServerStatus) XXX_DiscardUnknown()
func (*ServerStatus) XXX_Marshal ¶
func (m *ServerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerStatus) XXX_Merge ¶
func (dst *ServerStatus) XXX_Merge(src proto.Message)
func (*ServerStatus) XXX_Size ¶
func (m *ServerStatus) XXX_Size() int
func (*ServerStatus) XXX_Unmarshal ¶
func (m *ServerStatus) XXX_Unmarshal(b []byte) error
type ServerStatus_StatusCode ¶
type ServerStatus_StatusCode int32
const ( ServerStatus_UNDEFINED ServerStatus_StatusCode = 0 ServerStatus_STARTED ServerStatus_StatusCode = 1 ServerStatus_STOPPED ServerStatus_StatusCode = 2 ServerStatus_PAUSED ServerStatus_StatusCode = 3 ServerStatus_ERROR ServerStatus_StatusCode = 4 ServerStatus_UNKNOWN ServerStatus_StatusCode = 5 )
func (ServerStatus_StatusCode) EnumDescriptor ¶
func (ServerStatus_StatusCode) EnumDescriptor() ([]byte, []int)
func (ServerStatus_StatusCode) String ¶
func (x ServerStatus_StatusCode) String() string
type SignedChaincodeDeploymentSpec ¶
type SignedChaincodeDeploymentSpec struct { //这是chaincodedeploymentspec的字节 ChaincodeDeploymentSpec []byte `` /* 132-byte string literal not displayed */ //这是在结构上相同的实例化策略 //背书政策。此策略在提交时由VSCC检查 //实例化的时间(所有对等方将获得与其相同的策略 //将是LSCC实例化记录的一部分,并且将是 //散列也一样) InstantiationPolicy []byte `protobuf:"bytes,2,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"` //以上部署规范的认可,业主签字 //链码\部署\规范和背书。背书人。 OwnerEndorsements []*Endorsement `protobuf:"bytes,3,rep,name=owner_endorsements,json=ownerEndorsements,proto3" json:"owner_endorsements,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
签名的haincodedeploymentspec携带CD和背书
func (*SignedChaincodeDeploymentSpec) Descriptor ¶
func (*SignedChaincodeDeploymentSpec) Descriptor() ([]byte, []int)
func (*SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec ¶
func (m *SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec() []byte
func (*SignedChaincodeDeploymentSpec) GetInstantiationPolicy ¶
func (m *SignedChaincodeDeploymentSpec) GetInstantiationPolicy() []byte
func (*SignedChaincodeDeploymentSpec) GetOwnerEndorsements ¶
func (m *SignedChaincodeDeploymentSpec) GetOwnerEndorsements() []*Endorsement
func (*SignedChaincodeDeploymentSpec) ProtoMessage ¶
func (*SignedChaincodeDeploymentSpec) ProtoMessage()
func (*SignedChaincodeDeploymentSpec) Reset ¶
func (m *SignedChaincodeDeploymentSpec) Reset()
func (*SignedChaincodeDeploymentSpec) String ¶
func (m *SignedChaincodeDeploymentSpec) String() string
func (*SignedChaincodeDeploymentSpec) XXX_DiscardUnknown ¶
func (m *SignedChaincodeDeploymentSpec) XXX_DiscardUnknown()
func (*SignedChaincodeDeploymentSpec) XXX_Marshal ¶
func (m *SignedChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedChaincodeDeploymentSpec) XXX_Merge ¶
func (dst *SignedChaincodeDeploymentSpec) XXX_Merge(src proto.Message)
func (*SignedChaincodeDeploymentSpec) XXX_Size ¶
func (m *SignedChaincodeDeploymentSpec) XXX_Size() int
func (*SignedChaincodeDeploymentSpec) XXX_Unmarshal ¶
func (m *SignedChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error
type SignedProposal ¶
type SignedProposal struct { //建议的字节数 ProposalBytes []byte `protobuf:"bytes,1,opt,name=proposal_bytes,json=proposalBytes,proto3" json:"proposal_bytes,omitempty"` //在提议字节上签名;此签名将根据 //建议消息头中包含的创建者标识 //作为建议字节封送 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
此结构是签署包含标题的建议所必需的 以及有效载荷。如果没有这个结构,我们必须将 用于验证签名的头和有效负载,这可能很昂贵 有效载荷大
当背书人收到签名的目的信息时,应核实 提案字节上的签名。此验证需要以下内容 步骤: 1。验证用于生成的证书的有效性 签名。一旦ProposalBytes 已解编为建议消息,并且proposal.header已 未解析为头消息。在验证前取消标记时 可能不理想,这是不可避免的,因为i)签名还需要 保护签名证书;ii)希望创建头 一次由客户完成,从未改变(为了责任和 不可否认)。还要注意,实际上不可能得出结论 验证提案中包含的证书的有效性,因为 提案需首先得到批准,并就证书进行订购。 过期事务。不过,预先过滤过期还是很有用的。 此阶段的证书。 2。验证证书是否受信任(由受信任的CA签名)以及 允许与我们进行交易(关于某些ACL); 三。验证ProposalBytes上的签名是否有效; 4。检测重播攻击;
func (*SignedProposal) Descriptor ¶
func (*SignedProposal) Descriptor() ([]byte, []int)
func (*SignedProposal) GetProposalBytes ¶
func (m *SignedProposal) GetProposalBytes() []byte
func (*SignedProposal) GetSignature ¶
func (m *SignedProposal) GetSignature() []byte
func (*SignedProposal) ProtoMessage ¶
func (*SignedProposal) ProtoMessage()
func (*SignedProposal) Reset ¶
func (m *SignedProposal) Reset()
func (*SignedProposal) String ¶
func (m *SignedProposal) String() string
func (*SignedProposal) XXX_DiscardUnknown ¶
func (m *SignedProposal) XXX_DiscardUnknown()
func (*SignedProposal) XXX_Marshal ¶
func (m *SignedProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedProposal) XXX_Merge ¶
func (dst *SignedProposal) XXX_Merge(src proto.Message)
func (*SignedProposal) XXX_Size ¶
func (m *SignedProposal) XXX_Size() int
func (*SignedProposal) XXX_Unmarshal ¶
func (m *SignedProposal) XXX_Unmarshal(b []byte) error
type SignedTransaction ¶
type SignedTransaction struct { //事务的字节。无损检测 TransactionBytes []byte `protobuf:"bytes,1,opt,name=transaction_bytes,json=transactionBytes,proto3" json:"transaction_bytes,omitempty"` //签名的公钥所在的TransactionBytes的签名 //Transaction的头字段可能有多个 //事务处理,所以有多个头,但应该有相同的头 //所有标题中的事务处理程序标识(cert) Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
此消息对于验证签名是必要的 (在签名字段中)超过事务的字节(在 TransactionBytes字段)。
func (*SignedTransaction) Descriptor ¶
func (*SignedTransaction) Descriptor() ([]byte, []int)
func (*SignedTransaction) GetSignature ¶
func (m *SignedTransaction) GetSignature() []byte
func (*SignedTransaction) GetTransactionBytes ¶
func (m *SignedTransaction) GetTransactionBytes() []byte
func (*SignedTransaction) ProtoMessage ¶
func (*SignedTransaction) ProtoMessage()
func (*SignedTransaction) Reset ¶
func (m *SignedTransaction) Reset()
func (*SignedTransaction) String ¶
func (m *SignedTransaction) String() string
func (*SignedTransaction) XXX_DiscardUnknown ¶
func (m *SignedTransaction) XXX_DiscardUnknown()
func (*SignedTransaction) XXX_Marshal ¶
func (m *SignedTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedTransaction) XXX_Merge ¶
func (dst *SignedTransaction) XXX_Merge(src proto.Message)
func (*SignedTransaction) XXX_Size ¶
func (m *SignedTransaction) XXX_Size() int
func (*SignedTransaction) XXX_Unmarshal ¶
func (m *SignedTransaction) XXX_Unmarshal(b []byte) error
type StateMetadata ¶
type StateMetadata struct { Metakey string `protobuf:"bytes,1,opt,name=metakey,proto3" json:"metakey,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StateMetadata) Descriptor ¶
func (*StateMetadata) Descriptor() ([]byte, []int)
func (*StateMetadata) GetMetakey ¶
func (m *StateMetadata) GetMetakey() string
func (*StateMetadata) GetValue ¶
func (m *StateMetadata) GetValue() []byte
func (*StateMetadata) ProtoMessage ¶
func (*StateMetadata) ProtoMessage()
func (*StateMetadata) Reset ¶
func (m *StateMetadata) Reset()
func (*StateMetadata) String ¶
func (m *StateMetadata) String() string
func (*StateMetadata) XXX_DiscardUnknown ¶
func (m *StateMetadata) XXX_DiscardUnknown()
func (*StateMetadata) XXX_Marshal ¶
func (m *StateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StateMetadata) XXX_Merge ¶
func (dst *StateMetadata) XXX_Merge(src proto.Message)
func (*StateMetadata) XXX_Size ¶
func (m *StateMetadata) XXX_Size() int
func (*StateMetadata) XXX_Unmarshal ¶
func (m *StateMetadata) XXX_Unmarshal(b []byte) error
type StateMetadataResult ¶
type StateMetadataResult struct { Entries []*StateMetadata `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StateMetadataResult) Descriptor ¶
func (*StateMetadataResult) Descriptor() ([]byte, []int)
func (*StateMetadataResult) GetEntries ¶
func (m *StateMetadataResult) GetEntries() []*StateMetadata
func (*StateMetadataResult) ProtoMessage ¶
func (*StateMetadataResult) ProtoMessage()
func (*StateMetadataResult) Reset ¶
func (m *StateMetadataResult) Reset()
func (*StateMetadataResult) String ¶
func (m *StateMetadataResult) String() string
func (*StateMetadataResult) XXX_DiscardUnknown ¶
func (m *StateMetadataResult) XXX_DiscardUnknown()
func (*StateMetadataResult) XXX_Marshal ¶
func (m *StateMetadataResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StateMetadataResult) XXX_Merge ¶
func (dst *StateMetadataResult) XXX_Merge(src proto.Message)
func (*StateMetadataResult) XXX_Size ¶
func (m *StateMetadataResult) XXX_Size() int
func (*StateMetadataResult) XXX_Unmarshal ¶
func (m *StateMetadataResult) XXX_Unmarshal(b []byte) error
type Transaction ¶
type Transaction struct { //有效负载是一个事务操作数组。数组是必需的 //每个事务包含多个操作 Actions []*TransactionAction `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
要发送到订购服务的事务。事务包含 一个或多个交易。每一项交易都将一项提议约束到 可能有多个动作。事务是原子的,意味着 事务中的所有操作都将被提交或不提交。注意 虽然事务可能包含多个头,但header.creator 每个字段必须相同。 一个客户可以自由发布多个独立的提案,每个提案 它们的头(头)和请求有效载荷(chaincodeProposalPayload)。各 提案得到独立批准,产生了一项行动。 (提案负责人签名)每个背书人一个签名。任意数量 独立提案(及其行动)可能包括在交易中。 以确保它们被原子化处理。
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetActions ¶
func (m *Transaction) GetActions() []*TransactionAction
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (dst *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
type TransactionAction ¶
type TransactionAction struct { //建议操作的标题,即建议标题 Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` //由标题中的类型定义的操作的有效负载 //chaincode,它是chaincodeactionPayload的字节数 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
交易行为将提案与其行为绑定在一起。中的类型字段 标题指定要应用于分类帐的操作类型。
func (*TransactionAction) Descriptor ¶
func (*TransactionAction) Descriptor() ([]byte, []int)
func (*TransactionAction) GetHeader ¶
func (m *TransactionAction) GetHeader() []byte
func (*TransactionAction) GetPayload ¶
func (m *TransactionAction) GetPayload() []byte
func (*TransactionAction) ProtoMessage ¶
func (*TransactionAction) ProtoMessage()
func (*TransactionAction) Reset ¶
func (m *TransactionAction) Reset()
func (*TransactionAction) StaticallyOpaqueFieldProto ¶
func (ta *TransactionAction) StaticallyOpaqueFieldProto(name string) (proto.Message, error)
func (*TransactionAction) StaticallyOpaqueFields ¶
func (ta *TransactionAction) StaticallyOpaqueFields() []string
func (*TransactionAction) String ¶
func (m *TransactionAction) String() string
func (*TransactionAction) XXX_DiscardUnknown ¶
func (m *TransactionAction) XXX_DiscardUnknown()
func (*TransactionAction) XXX_Marshal ¶
func (m *TransactionAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionAction) XXX_Merge ¶
func (dst *TransactionAction) XXX_Merge(src proto.Message)
func (*TransactionAction) XXX_Size ¶
func (m *TransactionAction) XXX_Size() int
func (*TransactionAction) XXX_Unmarshal ¶
func (m *TransactionAction) XXX_Unmarshal(b []byte) error
type TxValidationCode ¶
type TxValidationCode int32
const ( TxValidationCode_VALID TxValidationCode = 0 TxValidationCode_NIL_ENVELOPE TxValidationCode = 1 TxValidationCode_BAD_PAYLOAD TxValidationCode = 2 TxValidationCode_BAD_COMMON_HEADER TxValidationCode = 3 TxValidationCode_BAD_CREATOR_SIGNATURE TxValidationCode = 4 TxValidationCode_INVALID_ENDORSER_TRANSACTION TxValidationCode = 5 TxValidationCode_INVALID_CONFIG_TRANSACTION TxValidationCode = 6 TxValidationCode_UNSUPPORTED_TX_PAYLOAD TxValidationCode = 7 TxValidationCode_BAD_PROPOSAL_TXID TxValidationCode = 8 TxValidationCode_DUPLICATE_TXID TxValidationCode = 9 TxValidationCode_ENDORSEMENT_POLICY_FAILURE TxValidationCode = 10 TxValidationCode_MVCC_READ_CONFLICT TxValidationCode = 11 TxValidationCode_PHANTOM_READ_CONFLICT TxValidationCode = 12 TxValidationCode_UNKNOWN_TX_TYPE TxValidationCode = 13 TxValidationCode_TARGET_CHAIN_NOT_FOUND TxValidationCode = 14 TxValidationCode_MARSHAL_TX_ERROR TxValidationCode = 15 TxValidationCode_NIL_TXACTION TxValidationCode = 16 TxValidationCode_EXPIRED_CHAINCODE TxValidationCode = 17 TxValidationCode_CHAINCODE_VERSION_CONFLICT TxValidationCode = 18 TxValidationCode_BAD_HEADER_EXTENSION TxValidationCode = 19 TxValidationCode_BAD_CHANNEL_HEADER TxValidationCode = 20 TxValidationCode_BAD_RESPONSE_PAYLOAD TxValidationCode = 21 TxValidationCode_BAD_RWSET TxValidationCode = 22 TxValidationCode_ILLEGAL_WRITESET TxValidationCode = 23 TxValidationCode_INVALID_WRITESET TxValidationCode = 24 TxValidationCode_NOT_VALIDATED TxValidationCode = 254 TxValidationCode_INVALID_OTHER_REASON TxValidationCode = 255 )
func (TxValidationCode) EnumDescriptor ¶
func (TxValidationCode) EnumDescriptor() ([]byte, []int)
func (TxValidationCode) String ¶
func (x TxValidationCode) String() string
type VSCCArgs ¶
type VSCCArgs struct { EndorsementPolicyRef string `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef,proto3" json:"endorsement_policy_ref,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
vsccargs作为参数通过 chaincodevalidation消息的参数字段。
func (*VSCCArgs) Descriptor ¶
func (*VSCCArgs) GetEndorsementPolicyRef ¶
func (*VSCCArgs) ProtoMessage ¶
func (*VSCCArgs) ProtoMessage()
func (*VSCCArgs) XXX_DiscardUnknown ¶
func (m *VSCCArgs) XXX_DiscardUnknown()
func (*VSCCArgs) XXX_Marshal ¶
func (*VSCCArgs) XXX_Unmarshal ¶
Source Files ¶
- admin.pb.go
- chaincode.go
- chaincode.pb.go
- chaincode_event.pb.go
- chaincode_shim.pb.go
- chaincodeunmarshall.go
- configuration.go
- configuration.pb.go
- events.pb.go
- peer.pb.go
- proposal.go
- proposal.pb.go
- proposal_response.go
- proposal_response.pb.go
- query.pb.go
- resources.pb.go
- signed_cc_dep_spec.pb.go
- transaction.go
- transaction.pb.go