Documentation ¶
Index ¶
- Variables
- func RegisterConfigServer(s *grpc.Server, srv ConfigServer)
- type CertificateAuthority
- func (*CertificateAuthority) Descriptor() ([]byte, []int)
- func (m *CertificateAuthority) GetName() string
- func (m *CertificateAuthority) GetRegistrar() *Registrar
- func (m *CertificateAuthority) GetUrl() string
- func (m *CertificateAuthority) GetUsername() string
- func (*CertificateAuthority) ProtoMessage()
- func (m *CertificateAuthority) Reset()
- func (m *CertificateAuthority) String() string
- func (m *CertificateAuthority) XXX_DiscardUnknown()
- func (m *CertificateAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertificateAuthority) XXX_Merge(src proto.Message)
- func (m *CertificateAuthority) XXX_Size() int
- func (m *CertificateAuthority) XXX_Unmarshal(b []byte) error
- type Channel
- func (*Channel) Descriptor() ([]byte, []int)
- func (m *Channel) GetPeerNames() []string
- func (m *Channel) GetPolicies() *Policy
- func (*Channel) ProtoMessage()
- func (m *Channel) Reset()
- func (m *Channel) String() string
- func (m *Channel) XXX_DiscardUnknown()
- func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Channel) XXX_Merge(src proto.Message)
- func (m *Channel) XXX_Size() int
- func (m *Channel) XXX_Unmarshal(b []byte) error
- type Client
- func (*Client) Descriptor() ([]byte, []int)
- func (m *Client) GetBCCSP() *ClientBCCSP
- func (m *Client) GetEventService() *ClientEventService
- func (m *Client) GetGlobal() *ClientGlobal
- func (m *Client) GetLogging() *ClientLogging
- func (m *Client) GetOrder() *ClientOrder
- func (m *Client) GetPeer() *ClientPeer
- func (m *Client) GetTls() bool
- func (*Client) ProtoMessage()
- func (m *Client) Reset()
- func (m *Client) String() string
- func (m *Client) XXX_DiscardUnknown()
- func (m *Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Client) XXX_Merge(src proto.Message)
- func (m *Client) XXX_Size() int
- func (m *Client) XXX_Unmarshal(b []byte) error
- type ClientBCCSP
- func (*ClientBCCSP) Descriptor() ([]byte, []int)
- func (m *ClientBCCSP) GetSecurity() *ClientBCCSPSecurity
- func (*ClientBCCSP) ProtoMessage()
- func (m *ClientBCCSP) Reset()
- func (m *ClientBCCSP) String() string
- func (m *ClientBCCSP) XXX_DiscardUnknown()
- func (m *ClientBCCSP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientBCCSP) XXX_Merge(src proto.Message)
- func (m *ClientBCCSP) XXX_Size() int
- func (m *ClientBCCSP) XXX_Unmarshal(b []byte) error
- type ClientBCCSPSecurity
- func (*ClientBCCSPSecurity) Descriptor() ([]byte, []int)
- func (m *ClientBCCSPSecurity) GetDefault() *ClientBCCSPSecurityDefault
- func (m *ClientBCCSPSecurity) GetEnabled() bool
- func (m *ClientBCCSPSecurity) GetHashAlgorithm() string
- func (m *ClientBCCSPSecurity) GetLevel() int32
- func (m *ClientBCCSPSecurity) GetSoftVerify() bool
- func (*ClientBCCSPSecurity) ProtoMessage()
- func (m *ClientBCCSPSecurity) Reset()
- func (m *ClientBCCSPSecurity) String() string
- func (m *ClientBCCSPSecurity) XXX_DiscardUnknown()
- func (m *ClientBCCSPSecurity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientBCCSPSecurity) XXX_Merge(src proto.Message)
- func (m *ClientBCCSPSecurity) XXX_Size() int
- func (m *ClientBCCSPSecurity) XXX_Unmarshal(b []byte) error
- type ClientBCCSPSecurityDefault
- func (*ClientBCCSPSecurityDefault) Descriptor() ([]byte, []int)
- func (m *ClientBCCSPSecurityDefault) GetProvider() string
- func (*ClientBCCSPSecurityDefault) ProtoMessage()
- func (m *ClientBCCSPSecurityDefault) Reset()
- func (m *ClientBCCSPSecurityDefault) String() string
- func (m *ClientBCCSPSecurityDefault) XXX_DiscardUnknown()
- func (m *ClientBCCSPSecurityDefault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientBCCSPSecurityDefault) XXX_Merge(src proto.Message)
- func (m *ClientBCCSPSecurityDefault) XXX_Size() int
- func (m *ClientBCCSPSecurityDefault) XXX_Unmarshal(b []byte) error
- type ClientCredentialStoreCryptoStore
- func (*ClientCredentialStoreCryptoStore) Descriptor() ([]byte, []int)
- func (m *ClientCredentialStoreCryptoStore) GetPath() string
- func (*ClientCredentialStoreCryptoStore) ProtoMessage()
- func (m *ClientCredentialStoreCryptoStore) Reset()
- func (m *ClientCredentialStoreCryptoStore) String() string
- func (m *ClientCredentialStoreCryptoStore) XXX_DiscardUnknown()
- func (m *ClientCredentialStoreCryptoStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientCredentialStoreCryptoStore) XXX_Merge(src proto.Message)
- func (m *ClientCredentialStoreCryptoStore) XXX_Size() int
- func (m *ClientCredentialStoreCryptoStore) XXX_Unmarshal(b []byte) error
- type ClientEventService
- func (*ClientEventService) Descriptor() ([]byte, []int)
- func (m *ClientEventService) GetTimeout() *ClientEventServiceTimeout
- func (*ClientEventService) ProtoMessage()
- func (m *ClientEventService) Reset()
- func (m *ClientEventService) String() string
- func (m *ClientEventService) XXX_DiscardUnknown()
- func (m *ClientEventService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientEventService) XXX_Merge(src proto.Message)
- func (m *ClientEventService) XXX_Size() int
- func (m *ClientEventService) XXX_Unmarshal(b []byte) error
- type ClientEventServiceTimeout
- func (*ClientEventServiceTimeout) Descriptor() ([]byte, []int)
- func (m *ClientEventServiceTimeout) GetRegistrationResponse() string
- func (*ClientEventServiceTimeout) ProtoMessage()
- func (m *ClientEventServiceTimeout) Reset()
- func (m *ClientEventServiceTimeout) String() string
- func (m *ClientEventServiceTimeout) XXX_DiscardUnknown()
- func (m *ClientEventServiceTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientEventServiceTimeout) XXX_Merge(src proto.Message)
- func (m *ClientEventServiceTimeout) XXX_Size() int
- func (m *ClientEventServiceTimeout) XXX_Unmarshal(b []byte) error
- type ClientGlobal
- func (*ClientGlobal) Descriptor() ([]byte, []int)
- func (m *ClientGlobal) GetCache() *ClientGlobalCache
- func (m *ClientGlobal) GetTimeout() *ClientGlobalTimeout
- func (*ClientGlobal) ProtoMessage()
- func (m *ClientGlobal) Reset()
- func (m *ClientGlobal) String() string
- func (m *ClientGlobal) XXX_DiscardUnknown()
- func (m *ClientGlobal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientGlobal) XXX_Merge(src proto.Message)
- func (m *ClientGlobal) XXX_Size() int
- func (m *ClientGlobal) XXX_Unmarshal(b []byte) error
- type ClientGlobalCache
- func (*ClientGlobalCache) Descriptor() ([]byte, []int)
- func (m *ClientGlobalCache) GetChannelConfig() string
- func (m *ClientGlobalCache) GetChannelMembership() string
- func (m *ClientGlobalCache) GetConnectionIdle() string
- func (m *ClientGlobalCache) GetDiscovery() string
- func (m *ClientGlobalCache) GetEventServiceIdle() string
- func (m *ClientGlobalCache) GetSelection() string
- func (*ClientGlobalCache) ProtoMessage()
- func (m *ClientGlobalCache) Reset()
- func (m *ClientGlobalCache) String() string
- func (m *ClientGlobalCache) XXX_DiscardUnknown()
- func (m *ClientGlobalCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientGlobalCache) XXX_Merge(src proto.Message)
- func (m *ClientGlobalCache) XXX_Size() int
- func (m *ClientGlobalCache) XXX_Unmarshal(b []byte) error
- type ClientGlobalTimeout
- func (*ClientGlobalTimeout) Descriptor() ([]byte, []int)
- func (m *ClientGlobalTimeout) GetExecute() string
- func (m *ClientGlobalTimeout) GetQuery() string
- func (m *ClientGlobalTimeout) GetResmgmt() string
- func (*ClientGlobalTimeout) ProtoMessage()
- func (m *ClientGlobalTimeout) Reset()
- func (m *ClientGlobalTimeout) String() string
- func (m *ClientGlobalTimeout) XXX_DiscardUnknown()
- func (m *ClientGlobalTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientGlobalTimeout) XXX_Merge(src proto.Message)
- func (m *ClientGlobalTimeout) XXX_Size() int
- func (m *ClientGlobalTimeout) XXX_Unmarshal(b []byte) error
- type ClientLogging
- func (*ClientLogging) Descriptor() ([]byte, []int)
- func (m *ClientLogging) GetLevel() string
- func (*ClientLogging) ProtoMessage()
- func (m *ClientLogging) Reset()
- func (m *ClientLogging) String() string
- func (m *ClientLogging) XXX_DiscardUnknown()
- func (m *ClientLogging) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientLogging) XXX_Merge(src proto.Message)
- func (m *ClientLogging) XXX_Size() int
- func (m *ClientLogging) XXX_Unmarshal(b []byte) error
- type ClientOrder
- func (*ClientOrder) Descriptor() ([]byte, []int)
- func (m *ClientOrder) GetTimeout() *ClientOrderTimeout
- func (*ClientOrder) ProtoMessage()
- func (m *ClientOrder) Reset()
- func (m *ClientOrder) String() string
- func (m *ClientOrder) XXX_DiscardUnknown()
- func (m *ClientOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientOrder) XXX_Merge(src proto.Message)
- func (m *ClientOrder) XXX_Size() int
- func (m *ClientOrder) XXX_Unmarshal(b []byte) error
- type ClientOrderTimeout
- func (*ClientOrderTimeout) Descriptor() ([]byte, []int)
- func (m *ClientOrderTimeout) GetConnection() string
- func (m *ClientOrderTimeout) GetResponse() string
- func (*ClientOrderTimeout) ProtoMessage()
- func (m *ClientOrderTimeout) Reset()
- func (m *ClientOrderTimeout) String() string
- func (m *ClientOrderTimeout) XXX_DiscardUnknown()
- func (m *ClientOrderTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientOrderTimeout) XXX_Merge(src proto.Message)
- func (m *ClientOrderTimeout) XXX_Size() int
- func (m *ClientOrderTimeout) XXX_Unmarshal(b []byte) error
- type ClientPeer
- func (*ClientPeer) Descriptor() ([]byte, []int)
- func (m *ClientPeer) GetTimeout() *ClientPeerTimeout
- func (*ClientPeer) ProtoMessage()
- func (m *ClientPeer) Reset()
- func (m *ClientPeer) String() string
- func (m *ClientPeer) XXX_DiscardUnknown()
- func (m *ClientPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientPeer) XXX_Merge(src proto.Message)
- func (m *ClientPeer) XXX_Size() int
- func (m *ClientPeer) XXX_Unmarshal(b []byte) error
- type ClientPeerTimeout
- func (*ClientPeerTimeout) Descriptor() ([]byte, []int)
- func (m *ClientPeerTimeout) GetConnection() string
- func (m *ClientPeerTimeout) GetDiscovery() *ClientPeerTimeoutDiscovery
- func (m *ClientPeerTimeout) GetResponse() string
- func (*ClientPeerTimeout) ProtoMessage()
- func (m *ClientPeerTimeout) Reset()
- func (m *ClientPeerTimeout) String() string
- func (m *ClientPeerTimeout) XXX_DiscardUnknown()
- func (m *ClientPeerTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientPeerTimeout) XXX_Merge(src proto.Message)
- func (m *ClientPeerTimeout) XXX_Size() int
- func (m *ClientPeerTimeout) XXX_Unmarshal(b []byte) error
- type ClientPeerTimeoutDiscovery
- func (*ClientPeerTimeoutDiscovery) Descriptor() ([]byte, []int)
- func (m *ClientPeerTimeoutDiscovery) GetGreyListExpiry() string
- func (*ClientPeerTimeoutDiscovery) ProtoMessage()
- func (m *ClientPeerTimeoutDiscovery) Reset()
- func (m *ClientPeerTimeoutDiscovery) String() string
- func (m *ClientPeerTimeoutDiscovery) XXX_DiscardUnknown()
- func (m *ClientPeerTimeoutDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientPeerTimeoutDiscovery) XXX_Merge(src proto.Message)
- func (m *ClientPeerTimeoutDiscovery) XXX_Size() int
- func (m *ClientPeerTimeoutDiscovery) XXX_Unmarshal(b []byte) error
- type Code
- type CommonRetryOpts
- func (*CommonRetryOpts) Descriptor() ([]byte, []int)
- func (m *CommonRetryOpts) GetAttempts() int32
- func (m *CommonRetryOpts) GetBackoffFactor() float32
- func (m *CommonRetryOpts) GetInitialBackoff() string
- func (m *CommonRetryOpts) GetMaxBackoff() string
- func (*CommonRetryOpts) ProtoMessage()
- func (m *CommonRetryOpts) Reset()
- func (m *CommonRetryOpts) String() string
- func (m *CommonRetryOpts) XXX_DiscardUnknown()
- func (m *CommonRetryOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommonRetryOpts) XXX_Merge(src proto.Message)
- func (m *CommonRetryOpts) XXX_Size() int
- func (m *CommonRetryOpts) XXX_Unmarshal(b []byte) error
- type ConfigClient
- type ConfigServer
- type Crypto
- func (*Crypto) Descriptor() ([]byte, []int)
- func (m *Crypto) GetCert() []byte
- func (m *Crypto) GetKey() []byte
- func (m *Crypto) GetTlsCert() []byte
- func (m *Crypto) GetTlsKey() []byte
- func (*Crypto) ProtoMessage()
- func (m *Crypto) Reset()
- func (m *Crypto) String() string
- func (m *Crypto) XXX_DiscardUnknown()
- func (m *Crypto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Crypto) XXX_Merge(src proto.Message)
- func (m *Crypto) XXX_Size() int
- func (m *Crypto) XXX_Unmarshal(b []byte) error
- type Discovery
- func (*Discovery) Descriptor() ([]byte, []int)
- func (m *Discovery) GetMaxTargets() int32
- func (m *Discovery) GetRetryOpts() *CommonRetryOpts
- func (*Discovery) ProtoMessage()
- func (m *Discovery) Reset()
- func (m *Discovery) String() string
- func (m *Discovery) XXX_DiscardUnknown()
- func (m *Discovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Discovery) XXX_Merge(src proto.Message)
- func (m *Discovery) XXX_Size() int
- func (m *Discovery) XXX_Unmarshal(b []byte) error
- type EventService
- func (*EventService) Descriptor() ([]byte, []int)
- func (m *EventService) GetBalancer() string
- func (m *EventService) GetBlockHeightLagThreshold() int64
- func (m *EventService) GetPeerMonitorPeriod() string
- func (m *EventService) GetReconnectBlockHeightLagThreshold() int64
- func (m *EventService) GetResolverStrategy() string
- func (*EventService) ProtoMessage()
- func (m *EventService) Reset()
- func (m *EventService) String() string
- func (m *EventService) XXX_DiscardUnknown()
- func (m *EventService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventService) XXX_Merge(src proto.Message)
- func (m *EventService) XXX_Size() int
- func (m *EventService) XXX_Unmarshal(b []byte) error
- type GRPCOptions
- func (*GRPCOptions) Descriptor() ([]byte, []int)
- func (m *GRPCOptions) GetAllowInsecure() bool
- func (m *GRPCOptions) GetFailFast() bool
- func (m *GRPCOptions) GetKeepAlivePermit() bool
- func (m *GRPCOptions) GetKeepAliveTime() string
- func (m *GRPCOptions) GetKeepAliveTimeout() string
- func (m *GRPCOptions) GetSslTargetNameOverride() string
- func (*GRPCOptions) ProtoMessage()
- func (m *GRPCOptions) Reset()
- func (m *GRPCOptions) String() string
- func (m *GRPCOptions) XXX_DiscardUnknown()
- func (m *GRPCOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GRPCOptions) XXX_Merge(src proto.Message)
- func (m *GRPCOptions) XXX_Size() int
- func (m *GRPCOptions) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetCrypto() *Crypto
- func (m *Node) GetGrpcOptions() *GRPCOptions
- func (m *Node) GetName() string
- func (m *Node) GetUrl() string
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Orderer
- func (*Orderer) Descriptor() ([]byte, []int)
- func (m *Orderer) GetCertBytes() []byte
- func (m *Orderer) GetDomain() string
- func (m *Orderer) GetMspID() string
- func (m *Orderer) GetName() string
- func (m *Orderer) GetNodes() []*Node
- func (m *Orderer) GetTlsCertBytes() []byte
- func (m *Orderer) GetUser() *User
- func (m *Orderer) GetUsername() string
- func (*Orderer) ProtoMessage()
- func (m *Orderer) Reset()
- func (m *Orderer) String() string
- func (m *Orderer) XXX_DiscardUnknown()
- func (m *Orderer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Orderer) XXX_Merge(src proto.Message)
- func (m *Orderer) XXX_Size() int
- func (m *Orderer) XXX_Unmarshal(b []byte) error
- type OrdererTLSCACerts
- func (*OrdererTLSCACerts) Descriptor() ([]byte, []int)
- func (m *OrdererTLSCACerts) GetPath() string
- func (*OrdererTLSCACerts) ProtoMessage()
- func (m *OrdererTLSCACerts) Reset()
- func (m *OrdererTLSCACerts) String() string
- func (m *OrdererTLSCACerts) XXX_DiscardUnknown()
- func (m *OrdererTLSCACerts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrdererTLSCACerts) XXX_Merge(src proto.Message)
- func (m *OrdererTLSCACerts) XXX_Size() int
- func (m *OrdererTLSCACerts) XXX_Unmarshal(b []byte) error
- type Org
- func (*Org) Descriptor() ([]byte, []int)
- func (m *Org) GetCas() []*CertificateAuthority
- func (m *Org) GetCertBytes() []byte
- func (m *Org) GetDomain() string
- func (m *Org) GetMspID() string
- func (m *Org) GetName() string
- func (m *Org) GetPeers() []*Peer
- func (m *Org) GetTlsCertBytes() []byte
- func (m *Org) GetUsername() string
- func (m *Org) GetUsers() []*User
- func (*Org) ProtoMessage()
- func (m *Org) Reset()
- func (m *Org) String() string
- func (m *Org) XXX_DiscardUnknown()
- func (m *Org) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Org) XXX_Merge(src proto.Message)
- func (m *Org) XXX_Size() int
- func (m *Org) XXX_Unmarshal(b []byte) error
- type OrgConfig
- func (*OrgConfig) Descriptor() ([]byte, []int)
- func (m *OrgConfig) GetLeagueDomain() string
- func (m *OrgConfig) GetOrgDomain() string
- func (*OrgConfig) ProtoMessage()
- func (m *OrgConfig) Reset()
- func (m *OrgConfig) String() string
- func (m *OrgConfig) XXX_DiscardUnknown()
- func (m *OrgConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrgConfig) XXX_Merge(src proto.Message)
- func (m *OrgConfig) XXX_Size() int
- func (m *OrgConfig) XXX_Unmarshal(b []byte) error
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetChaincodeQuery() bool
- func (m *Peer) GetCrypto() *Crypto
- func (m *Peer) GetEndorsingPeer() bool
- func (m *Peer) GetEventSource() bool
- func (m *Peer) GetEventUrl() string
- func (m *Peer) GetGrpcOptions() *GRPCOptions
- func (m *Peer) GetLedgerQuery() bool
- func (m *Peer) GetName() string
- func (m *Peer) GetUrl() string
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetDiscovery() *Discovery
- func (m *Policy) GetEventService() *EventService
- func (m *Policy) GetQueryChannelConfig() *QueryChannelConfig
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) String() string
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type QueryChannelConfig
- func (*QueryChannelConfig) Descriptor() ([]byte, []int)
- func (m *QueryChannelConfig) GetMaxTargets() int32
- func (m *QueryChannelConfig) GetMinResponses() int32
- func (m *QueryChannelConfig) GetRetryOpts() *CommonRetryOpts
- func (*QueryChannelConfig) ProtoMessage()
- func (m *QueryChannelConfig) Reset()
- func (m *QueryChannelConfig) String() string
- func (m *QueryChannelConfig) XXX_DiscardUnknown()
- func (m *QueryChannelConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryChannelConfig) XXX_Merge(src proto.Message)
- func (m *QueryChannelConfig) XXX_Size() int
- func (m *QueryChannelConfig) XXX_Unmarshal(b []byte) error
- type Registrar
- func (*Registrar) Descriptor() ([]byte, []int)
- func (m *Registrar) GetEnrollId() string
- func (m *Registrar) GetEnrollSecret() string
- func (*Registrar) ProtoMessage()
- func (m *Registrar) Reset()
- func (m *Registrar) String() string
- func (m *Registrar) XXX_DiscardUnknown()
- func (m *Registrar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Registrar) XXX_Merge(src proto.Message)
- func (m *Registrar) XXX_Size() int
- func (m *Registrar) XXX_Unmarshal(b []byte) error
- type ReqConfigDelete
- func (*ReqConfigDelete) Descriptor() ([]byte, []int)
- func (m *ReqConfigDelete) GetConfigs() []*OrgConfig
- func (*ReqConfigDelete) ProtoMessage()
- func (m *ReqConfigDelete) Reset()
- func (m *ReqConfigDelete) String() string
- func (m *ReqConfigDelete) XXX_DiscardUnknown()
- func (m *ReqConfigDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqConfigDelete) XXX_Merge(src proto.Message)
- func (m *ReqConfigDelete) XXX_Size() int
- func (m *ReqConfigDelete) XXX_Unmarshal(b []byte) error
- type ReqConfigList
- func (*ReqConfigList) Descriptor() ([]byte, []int)
- func (*ReqConfigList) ProtoMessage()
- func (m *ReqConfigList) Reset()
- func (m *ReqConfigList) String() string
- func (m *ReqConfigList) XXX_DiscardUnknown()
- func (m *ReqConfigList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqConfigList) XXX_Merge(src proto.Message)
- func (m *ReqConfigList) XXX_Size() int
- func (m *ReqConfigList) XXX_Unmarshal(b []byte) error
- type ReqConfigObtain
- func (*ReqConfigObtain) Descriptor() ([]byte, []int)
- func (m *ReqConfigObtain) GetLeagueDomain() string
- func (m *ReqConfigObtain) GetOrgDomain() string
- func (*ReqConfigObtain) ProtoMessage()
- func (m *ReqConfigObtain) Reset()
- func (m *ReqConfigObtain) String() string
- func (m *ReqConfigObtain) XXX_DiscardUnknown()
- func (m *ReqConfigObtain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqConfigObtain) XXX_Merge(src proto.Message)
- func (m *ReqConfigObtain) XXX_Size() int
- func (m *ReqConfigObtain) XXX_Unmarshal(b []byte) error
- type ReqConfigSet
- func (*ReqConfigSet) Descriptor() ([]byte, []int)
- func (m *ReqConfigSet) GetChannels() map[string]*Channel
- func (m *ReqConfigSet) GetClient() *Client
- func (m *ReqConfigSet) GetLeagueDomain() string
- func (m *ReqConfigSet) GetOrderer() *Orderer
- func (m *ReqConfigSet) GetOrg() *Org
- func (m *ReqConfigSet) GetVersion() string
- func (*ReqConfigSet) ProtoMessage()
- func (m *ReqConfigSet) Reset()
- func (m *ReqConfigSet) String() string
- func (m *ReqConfigSet) XXX_DiscardUnknown()
- func (m *ReqConfigSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqConfigSet) XXX_Merge(src proto.Message)
- func (m *ReqConfigSet) XXX_Size() int
- func (m *ReqConfigSet) XXX_Unmarshal(b []byte) error
- type RespConfigDelete
- func (*RespConfigDelete) Descriptor() ([]byte, []int)
- func (m *RespConfigDelete) GetCode() Code
- func (m *RespConfigDelete) GetErrMsg() string
- func (*RespConfigDelete) ProtoMessage()
- func (m *RespConfigDelete) Reset()
- func (m *RespConfigDelete) String() string
- func (m *RespConfigDelete) XXX_DiscardUnknown()
- func (m *RespConfigDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespConfigDelete) XXX_Merge(src proto.Message)
- func (m *RespConfigDelete) XXX_Size() int
- func (m *RespConfigDelete) XXX_Unmarshal(b []byte) error
- type RespConfigList
- func (*RespConfigList) Descriptor() ([]byte, []int)
- func (m *RespConfigList) GetCode() Code
- func (m *RespConfigList) GetConfigs() []*OrgConfig
- func (m *RespConfigList) GetErrMsg() string
- func (*RespConfigList) ProtoMessage()
- func (m *RespConfigList) Reset()
- func (m *RespConfigList) String() string
- func (m *RespConfigList) XXX_DiscardUnknown()
- func (m *RespConfigList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespConfigList) XXX_Merge(src proto.Message)
- func (m *RespConfigList) XXX_Size() int
- func (m *RespConfigList) XXX_Unmarshal(b []byte) error
- type RespConfigObtain
- func (*RespConfigObtain) Descriptor() ([]byte, []int)
- func (m *RespConfigObtain) GetCode() Code
- func (m *RespConfigObtain) GetConfigBytes() []byte
- func (m *RespConfigObtain) GetErrMsg() string
- func (*RespConfigObtain) ProtoMessage()
- func (m *RespConfigObtain) Reset()
- func (m *RespConfigObtain) String() string
- func (m *RespConfigObtain) XXX_DiscardUnknown()
- func (m *RespConfigObtain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespConfigObtain) XXX_Merge(src proto.Message)
- func (m *RespConfigObtain) XXX_Size() int
- func (m *RespConfigObtain) XXX_Unmarshal(b []byte) error
- type RespConfigSet
- func (*RespConfigSet) Descriptor() ([]byte, []int)
- func (m *RespConfigSet) GetCode() Code
- func (m *RespConfigSet) GetErrMsg() string
- func (*RespConfigSet) ProtoMessage()
- func (m *RespConfigSet) Reset()
- func (m *RespConfigSet) String() string
- func (m *RespConfigSet) XXX_DiscardUnknown()
- func (m *RespConfigSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespConfigSet) XXX_Merge(src proto.Message)
- func (m *RespConfigSet) XXX_Size() int
- func (m *RespConfigSet) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCrypto() *Crypto
- func (m *User) GetIsAdmin() bool
- func (m *User) GetName() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Code_name = map[int32]string{
0: "Success",
1: "Fail",
}
View Source
var Code_value = map[string]int32{
"Success": 0,
"Fail": 1,
}
Functions ¶
func RegisterConfigServer ¶
func RegisterConfigServer(s *grpc.Server, srv ConfigServer)
Types ¶
type CertificateAuthority ¶
type CertificateAuthority struct { // https://ca.org1.example.com:7054 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // name of the CA Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // ca 指定组织用户名,如:Admin/User0 Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Registrar *Registrar `protobuf:"bytes,5,opt,name=registrar,proto3" json:"registrar,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CertificateAuthority) Descriptor ¶
func (*CertificateAuthority) Descriptor() ([]byte, []int)
func (*CertificateAuthority) GetName ¶
func (m *CertificateAuthority) GetName() string
func (*CertificateAuthority) GetRegistrar ¶
func (m *CertificateAuthority) GetRegistrar() *Registrar
func (*CertificateAuthority) GetUrl ¶
func (m *CertificateAuthority) GetUrl() string
func (*CertificateAuthority) GetUsername ¶
func (m *CertificateAuthority) GetUsername() string
func (*CertificateAuthority) ProtoMessage ¶
func (*CertificateAuthority) ProtoMessage()
func (*CertificateAuthority) Reset ¶
func (m *CertificateAuthority) Reset()
func (*CertificateAuthority) String ¶
func (m *CertificateAuthority) String() string
func (*CertificateAuthority) XXX_DiscardUnknown ¶
func (m *CertificateAuthority) XXX_DiscardUnknown()
func (*CertificateAuthority) XXX_Marshal ¶
func (m *CertificateAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertificateAuthority) XXX_Merge ¶
func (m *CertificateAuthority) XXX_Merge(src proto.Message)
func (*CertificateAuthority) XXX_Size ¶
func (m *CertificateAuthority) XXX_Size() int
func (*CertificateAuthority) XXX_Unmarshal ¶
func (m *CertificateAuthority) XXX_Unmarshal(b []byte) error
type Channel ¶
type Channel struct { // 已知加入该通道的peer节点名称集合,如[peer0, peer1] PeerNames []string `protobuf:"bytes,1,rep,name=peerNames,proto3" json:"peerNames,omitempty"` // 可选参数,应用程序可以使用这些选项来执行通道操作,如检索通道配置等。 Policies *Policy `protobuf:"bytes,2,opt,name=Policies,proto3" json:"Policies,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
联盟通道信息
func (*Channel) Descriptor ¶
func (*Channel) GetPeerNames ¶
func (*Channel) GetPolicies ¶
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) XXX_DiscardUnknown ¶
func (m *Channel) XXX_DiscardUnknown()
func (*Channel) XXX_Marshal ¶
func (*Channel) XXX_Unmarshal ¶
type Client ¶
type Client struct { // 日志级别,debug、info、warn、error等 Logging *ClientLogging `protobuf:"bytes,2,opt,name=logging,proto3" json:"logging,omitempty"` // 节点超时的全局配置,如果省略此部分,则将使用缺省值 Peer *ClientPeer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"` // 事件服务超时的全局配置,如果省略此部分,则将使用缺省值 EventService *ClientEventService `protobuf:"bytes,4,opt,name=eventService,proto3" json:"eventService,omitempty"` // orderer超时的全局配置,如果省略此部分,则将使用缺省值 Order *ClientOrder `protobuf:"bytes,5,opt,name=order,proto3" json:"order,omitempty"` // 超时的全局配置,如果省略此部分,则将使用缺省值 Global *ClientGlobal `protobuf:"bytes,6,opt,name=global,proto3" json:"global,omitempty"` // 客户端的BCCSP配置 BCCSP *ClientBCCSP `protobuf:"bytes,9,opt,name=BCCSP,proto3" json:"BCCSP,omitempty"` Tls bool `protobuf:"varint,10,opt,name=tls,proto3" json:"tls,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Client go sdk 使用的客户端
func (*Client) Descriptor ¶
func (*Client) GetBCCSP ¶
func (m *Client) GetBCCSP() *ClientBCCSP
func (*Client) GetEventService ¶
func (m *Client) GetEventService() *ClientEventService
func (*Client) GetGlobal ¶
func (m *Client) GetGlobal() *ClientGlobal
func (*Client) GetLogging ¶
func (m *Client) GetLogging() *ClientLogging
func (*Client) GetOrder ¶
func (m *Client) GetOrder() *ClientOrder
func (*Client) GetPeer ¶
func (m *Client) GetPeer() *ClientPeer
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) XXX_DiscardUnknown ¶
func (m *Client) XXX_DiscardUnknown()
func (*Client) XXX_Marshal ¶
func (*Client) XXX_Unmarshal ¶
type ClientBCCSP ¶
type ClientBCCSP struct { Security *ClientBCCSPSecurity `protobuf:"bytes,1,opt,name=security,proto3" json:"security,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientBCCSP) Descriptor ¶
func (*ClientBCCSP) Descriptor() ([]byte, []int)
func (*ClientBCCSP) GetSecurity ¶
func (m *ClientBCCSP) GetSecurity() *ClientBCCSPSecurity
func (*ClientBCCSP) ProtoMessage ¶
func (*ClientBCCSP) ProtoMessage()
func (*ClientBCCSP) Reset ¶
func (m *ClientBCCSP) Reset()
func (*ClientBCCSP) String ¶
func (m *ClientBCCSP) String() string
func (*ClientBCCSP) XXX_DiscardUnknown ¶
func (m *ClientBCCSP) XXX_DiscardUnknown()
func (*ClientBCCSP) XXX_Marshal ¶
func (m *ClientBCCSP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientBCCSP) XXX_Merge ¶
func (m *ClientBCCSP) XXX_Merge(src proto.Message)
func (*ClientBCCSP) XXX_Size ¶
func (m *ClientBCCSP) XXX_Size() int
func (*ClientBCCSP) XXX_Unmarshal ¶
func (m *ClientBCCSP) XXX_Unmarshal(b []byte) error
type ClientBCCSPSecurity ¶
type ClientBCCSPSecurity struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Default *ClientBCCSPSecurityDefault `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"` HashAlgorithm string `protobuf:"bytes,3,opt,name=hashAlgorithm,proto3" json:"hashAlgorithm,omitempty"` SoftVerify bool `protobuf:"varint,4,opt,name=softVerify,proto3" json:"softVerify,omitempty"` Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientBCCSPSecurity) Descriptor ¶
func (*ClientBCCSPSecurity) Descriptor() ([]byte, []int)
func (*ClientBCCSPSecurity) GetDefault ¶
func (m *ClientBCCSPSecurity) GetDefault() *ClientBCCSPSecurityDefault
func (*ClientBCCSPSecurity) GetEnabled ¶
func (m *ClientBCCSPSecurity) GetEnabled() bool
func (*ClientBCCSPSecurity) GetHashAlgorithm ¶
func (m *ClientBCCSPSecurity) GetHashAlgorithm() string
func (*ClientBCCSPSecurity) GetLevel ¶
func (m *ClientBCCSPSecurity) GetLevel() int32
func (*ClientBCCSPSecurity) GetSoftVerify ¶
func (m *ClientBCCSPSecurity) GetSoftVerify() bool
func (*ClientBCCSPSecurity) ProtoMessage ¶
func (*ClientBCCSPSecurity) ProtoMessage()
func (*ClientBCCSPSecurity) Reset ¶
func (m *ClientBCCSPSecurity) Reset()
func (*ClientBCCSPSecurity) String ¶
func (m *ClientBCCSPSecurity) String() string
func (*ClientBCCSPSecurity) XXX_DiscardUnknown ¶
func (m *ClientBCCSPSecurity) XXX_DiscardUnknown()
func (*ClientBCCSPSecurity) XXX_Marshal ¶
func (m *ClientBCCSPSecurity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientBCCSPSecurity) XXX_Merge ¶
func (m *ClientBCCSPSecurity) XXX_Merge(src proto.Message)
func (*ClientBCCSPSecurity) XXX_Size ¶
func (m *ClientBCCSPSecurity) XXX_Size() int
func (*ClientBCCSPSecurity) XXX_Unmarshal ¶
func (m *ClientBCCSPSecurity) XXX_Unmarshal(b []byte) error
type ClientBCCSPSecurityDefault ¶
type ClientBCCSPSecurityDefault struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientBCCSPSecurityDefault) Descriptor ¶
func (*ClientBCCSPSecurityDefault) Descriptor() ([]byte, []int)
func (*ClientBCCSPSecurityDefault) GetProvider ¶
func (m *ClientBCCSPSecurityDefault) GetProvider() string
func (*ClientBCCSPSecurityDefault) ProtoMessage ¶
func (*ClientBCCSPSecurityDefault) ProtoMessage()
func (*ClientBCCSPSecurityDefault) Reset ¶
func (m *ClientBCCSPSecurityDefault) Reset()
func (*ClientBCCSPSecurityDefault) String ¶
func (m *ClientBCCSPSecurityDefault) String() string
func (*ClientBCCSPSecurityDefault) XXX_DiscardUnknown ¶
func (m *ClientBCCSPSecurityDefault) XXX_DiscardUnknown()
func (*ClientBCCSPSecurityDefault) XXX_Marshal ¶
func (m *ClientBCCSPSecurityDefault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientBCCSPSecurityDefault) XXX_Merge ¶
func (m *ClientBCCSPSecurityDefault) XXX_Merge(src proto.Message)
func (*ClientBCCSPSecurityDefault) XXX_Size ¶
func (m *ClientBCCSPSecurityDefault) XXX_Size() int
func (*ClientBCCSPSecurityDefault) XXX_Unmarshal ¶
func (m *ClientBCCSPSecurityDefault) XXX_Unmarshal(b []byte) error
type ClientCredentialStoreCryptoStore ¶
type ClientCredentialStoreCryptoStore struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientCredentialStoreCryptoStore) Descriptor ¶
func (*ClientCredentialStoreCryptoStore) Descriptor() ([]byte, []int)
func (*ClientCredentialStoreCryptoStore) GetPath ¶
func (m *ClientCredentialStoreCryptoStore) GetPath() string
func (*ClientCredentialStoreCryptoStore) ProtoMessage ¶
func (*ClientCredentialStoreCryptoStore) ProtoMessage()
func (*ClientCredentialStoreCryptoStore) Reset ¶
func (m *ClientCredentialStoreCryptoStore) Reset()
func (*ClientCredentialStoreCryptoStore) String ¶
func (m *ClientCredentialStoreCryptoStore) String() string
func (*ClientCredentialStoreCryptoStore) XXX_DiscardUnknown ¶
func (m *ClientCredentialStoreCryptoStore) XXX_DiscardUnknown()
func (*ClientCredentialStoreCryptoStore) XXX_Marshal ¶
func (m *ClientCredentialStoreCryptoStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientCredentialStoreCryptoStore) XXX_Merge ¶
func (m *ClientCredentialStoreCryptoStore) XXX_Merge(src proto.Message)
func (*ClientCredentialStoreCryptoStore) XXX_Size ¶
func (m *ClientCredentialStoreCryptoStore) XXX_Size() int
func (*ClientCredentialStoreCryptoStore) XXX_Unmarshal ¶
func (m *ClientCredentialStoreCryptoStore) XXX_Unmarshal(b []byte) error
type ClientEventService ¶
type ClientEventService struct { Timeout *ClientEventServiceTimeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientEventService) Descriptor ¶
func (*ClientEventService) Descriptor() ([]byte, []int)
func (*ClientEventService) GetTimeout ¶
func (m *ClientEventService) GetTimeout() *ClientEventServiceTimeout
func (*ClientEventService) ProtoMessage ¶
func (*ClientEventService) ProtoMessage()
func (*ClientEventService) Reset ¶
func (m *ClientEventService) Reset()
func (*ClientEventService) String ¶
func (m *ClientEventService) String() string
func (*ClientEventService) XXX_DiscardUnknown ¶
func (m *ClientEventService) XXX_DiscardUnknown()
func (*ClientEventService) XXX_Marshal ¶
func (m *ClientEventService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientEventService) XXX_Merge ¶
func (m *ClientEventService) XXX_Merge(src proto.Message)
func (*ClientEventService) XXX_Size ¶
func (m *ClientEventService) XXX_Size() int
func (*ClientEventService) XXX_Unmarshal ¶
func (m *ClientEventService) XXX_Unmarshal(b []byte) error
type ClientEventServiceTimeout ¶
type ClientEventServiceTimeout struct { RegistrationResponse string `protobuf:"bytes,1,opt,name=registrationResponse,proto3" json:"registrationResponse,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientEventServiceTimeout) Descriptor ¶
func (*ClientEventServiceTimeout) Descriptor() ([]byte, []int)
func (*ClientEventServiceTimeout) GetRegistrationResponse ¶
func (m *ClientEventServiceTimeout) GetRegistrationResponse() string
func (*ClientEventServiceTimeout) ProtoMessage ¶
func (*ClientEventServiceTimeout) ProtoMessage()
func (*ClientEventServiceTimeout) Reset ¶
func (m *ClientEventServiceTimeout) Reset()
func (*ClientEventServiceTimeout) String ¶
func (m *ClientEventServiceTimeout) String() string
func (*ClientEventServiceTimeout) XXX_DiscardUnknown ¶
func (m *ClientEventServiceTimeout) XXX_DiscardUnknown()
func (*ClientEventServiceTimeout) XXX_Marshal ¶
func (m *ClientEventServiceTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientEventServiceTimeout) XXX_Merge ¶
func (m *ClientEventServiceTimeout) XXX_Merge(src proto.Message)
func (*ClientEventServiceTimeout) XXX_Size ¶
func (m *ClientEventServiceTimeout) XXX_Size() int
func (*ClientEventServiceTimeout) XXX_Unmarshal ¶
func (m *ClientEventServiceTimeout) XXX_Unmarshal(b []byte) error
type ClientGlobal ¶
type ClientGlobal struct { Timeout *ClientGlobalTimeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` Cache *ClientGlobalCache `protobuf:"bytes,2,opt,name=cache,proto3" json:"cache,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientGlobal) Descriptor ¶
func (*ClientGlobal) Descriptor() ([]byte, []int)
func (*ClientGlobal) GetCache ¶
func (m *ClientGlobal) GetCache() *ClientGlobalCache
func (*ClientGlobal) GetTimeout ¶
func (m *ClientGlobal) GetTimeout() *ClientGlobalTimeout
func (*ClientGlobal) ProtoMessage ¶
func (*ClientGlobal) ProtoMessage()
func (*ClientGlobal) Reset ¶
func (m *ClientGlobal) Reset()
func (*ClientGlobal) String ¶
func (m *ClientGlobal) String() string
func (*ClientGlobal) XXX_DiscardUnknown ¶
func (m *ClientGlobal) XXX_DiscardUnknown()
func (*ClientGlobal) XXX_Marshal ¶
func (m *ClientGlobal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientGlobal) XXX_Merge ¶
func (m *ClientGlobal) XXX_Merge(src proto.Message)
func (*ClientGlobal) XXX_Size ¶
func (m *ClientGlobal) XXX_Size() int
func (*ClientGlobal) XXX_Unmarshal ¶
func (m *ClientGlobal) XXX_Unmarshal(b []byte) error
type ClientGlobalCache ¶
type ClientGlobalCache struct { ConnectionIdle string `protobuf:"bytes,1,opt,name=connectionIdle,proto3" json:"connectionIdle,omitempty"` EventServiceIdle string `protobuf:"bytes,2,opt,name=eventServiceIdle,proto3" json:"eventServiceIdle,omitempty"` ChannelConfig string `protobuf:"bytes,3,opt,name=channelConfig,proto3" json:"channelConfig,omitempty"` ChannelMembership string `protobuf:"bytes,4,opt,name=channelMembership,proto3" json:"channelMembership,omitempty"` Discovery string `protobuf:"bytes,5,opt,name=discovery,proto3" json:"discovery,omitempty"` Selection string `protobuf:"bytes,6,opt,name=selection,proto3" json:"selection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientGlobalCache) Descriptor ¶
func (*ClientGlobalCache) Descriptor() ([]byte, []int)
func (*ClientGlobalCache) GetChannelConfig ¶
func (m *ClientGlobalCache) GetChannelConfig() string
func (*ClientGlobalCache) GetChannelMembership ¶
func (m *ClientGlobalCache) GetChannelMembership() string
func (*ClientGlobalCache) GetConnectionIdle ¶
func (m *ClientGlobalCache) GetConnectionIdle() string
func (*ClientGlobalCache) GetDiscovery ¶
func (m *ClientGlobalCache) GetDiscovery() string
func (*ClientGlobalCache) GetEventServiceIdle ¶
func (m *ClientGlobalCache) GetEventServiceIdle() string
func (*ClientGlobalCache) GetSelection ¶
func (m *ClientGlobalCache) GetSelection() string
func (*ClientGlobalCache) ProtoMessage ¶
func (*ClientGlobalCache) ProtoMessage()
func (*ClientGlobalCache) Reset ¶
func (m *ClientGlobalCache) Reset()
func (*ClientGlobalCache) String ¶
func (m *ClientGlobalCache) String() string
func (*ClientGlobalCache) XXX_DiscardUnknown ¶
func (m *ClientGlobalCache) XXX_DiscardUnknown()
func (*ClientGlobalCache) XXX_Marshal ¶
func (m *ClientGlobalCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientGlobalCache) XXX_Merge ¶
func (m *ClientGlobalCache) XXX_Merge(src proto.Message)
func (*ClientGlobalCache) XXX_Size ¶
func (m *ClientGlobalCache) XXX_Size() int
func (*ClientGlobalCache) XXX_Unmarshal ¶
func (m *ClientGlobalCache) XXX_Unmarshal(b []byte) error
type ClientGlobalTimeout ¶
type ClientGlobalTimeout struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Execute string `protobuf:"bytes,2,opt,name=execute,proto3" json:"execute,omitempty"` Resmgmt string `protobuf:"bytes,3,opt,name=resmgmt,proto3" json:"resmgmt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientGlobalTimeout) Descriptor ¶
func (*ClientGlobalTimeout) Descriptor() ([]byte, []int)
func (*ClientGlobalTimeout) GetExecute ¶
func (m *ClientGlobalTimeout) GetExecute() string
func (*ClientGlobalTimeout) GetQuery ¶
func (m *ClientGlobalTimeout) GetQuery() string
func (*ClientGlobalTimeout) GetResmgmt ¶
func (m *ClientGlobalTimeout) GetResmgmt() string
func (*ClientGlobalTimeout) ProtoMessage ¶
func (*ClientGlobalTimeout) ProtoMessage()
func (*ClientGlobalTimeout) Reset ¶
func (m *ClientGlobalTimeout) Reset()
func (*ClientGlobalTimeout) String ¶
func (m *ClientGlobalTimeout) String() string
func (*ClientGlobalTimeout) XXX_DiscardUnknown ¶
func (m *ClientGlobalTimeout) XXX_DiscardUnknown()
func (*ClientGlobalTimeout) XXX_Marshal ¶
func (m *ClientGlobalTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientGlobalTimeout) XXX_Merge ¶
func (m *ClientGlobalTimeout) XXX_Merge(src proto.Message)
func (*ClientGlobalTimeout) XXX_Size ¶
func (m *ClientGlobalTimeout) XXX_Size() int
func (*ClientGlobalTimeout) XXX_Unmarshal ¶
func (m *ClientGlobalTimeout) XXX_Unmarshal(b []byte) error
type ClientLogging ¶
type ClientLogging struct { // 默认info Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
客户端日志设置对象
func (*ClientLogging) Descriptor ¶
func (*ClientLogging) Descriptor() ([]byte, []int)
func (*ClientLogging) GetLevel ¶
func (m *ClientLogging) GetLevel() string
func (*ClientLogging) ProtoMessage ¶
func (*ClientLogging) ProtoMessage()
func (*ClientLogging) Reset ¶
func (m *ClientLogging) Reset()
func (*ClientLogging) String ¶
func (m *ClientLogging) String() string
func (*ClientLogging) XXX_DiscardUnknown ¶
func (m *ClientLogging) XXX_DiscardUnknown()
func (*ClientLogging) XXX_Marshal ¶
func (m *ClientLogging) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientLogging) XXX_Merge ¶
func (m *ClientLogging) XXX_Merge(src proto.Message)
func (*ClientLogging) XXX_Size ¶
func (m *ClientLogging) XXX_Size() int
func (*ClientLogging) XXX_Unmarshal ¶
func (m *ClientLogging) XXX_Unmarshal(b []byte) error
type ClientOrder ¶
type ClientOrder struct { Timeout *ClientOrderTimeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientOrder) Descriptor ¶
func (*ClientOrder) Descriptor() ([]byte, []int)
func (*ClientOrder) GetTimeout ¶
func (m *ClientOrder) GetTimeout() *ClientOrderTimeout
func (*ClientOrder) ProtoMessage ¶
func (*ClientOrder) ProtoMessage()
func (*ClientOrder) Reset ¶
func (m *ClientOrder) Reset()
func (*ClientOrder) String ¶
func (m *ClientOrder) String() string
func (*ClientOrder) XXX_DiscardUnknown ¶
func (m *ClientOrder) XXX_DiscardUnknown()
func (*ClientOrder) XXX_Marshal ¶
func (m *ClientOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientOrder) XXX_Merge ¶
func (m *ClientOrder) XXX_Merge(src proto.Message)
func (*ClientOrder) XXX_Size ¶
func (m *ClientOrder) XXX_Size() int
func (*ClientOrder) XXX_Unmarshal ¶
func (m *ClientOrder) XXX_Unmarshal(b []byte) error
type ClientOrderTimeout ¶
type ClientOrderTimeout struct { Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"` Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientOrderTimeout) Descriptor ¶
func (*ClientOrderTimeout) Descriptor() ([]byte, []int)
func (*ClientOrderTimeout) GetConnection ¶
func (m *ClientOrderTimeout) GetConnection() string
func (*ClientOrderTimeout) GetResponse ¶
func (m *ClientOrderTimeout) GetResponse() string
func (*ClientOrderTimeout) ProtoMessage ¶
func (*ClientOrderTimeout) ProtoMessage()
func (*ClientOrderTimeout) Reset ¶
func (m *ClientOrderTimeout) Reset()
func (*ClientOrderTimeout) String ¶
func (m *ClientOrderTimeout) String() string
func (*ClientOrderTimeout) XXX_DiscardUnknown ¶
func (m *ClientOrderTimeout) XXX_DiscardUnknown()
func (*ClientOrderTimeout) XXX_Marshal ¶
func (m *ClientOrderTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientOrderTimeout) XXX_Merge ¶
func (m *ClientOrderTimeout) XXX_Merge(src proto.Message)
func (*ClientOrderTimeout) XXX_Size ¶
func (m *ClientOrderTimeout) XXX_Size() int
func (*ClientOrderTimeout) XXX_Unmarshal ¶
func (m *ClientOrderTimeout) XXX_Unmarshal(b []byte) error
type ClientPeer ¶
type ClientPeer struct { Timeout *ClientPeerTimeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientPeer) Descriptor ¶
func (*ClientPeer) Descriptor() ([]byte, []int)
func (*ClientPeer) GetTimeout ¶
func (m *ClientPeer) GetTimeout() *ClientPeerTimeout
func (*ClientPeer) ProtoMessage ¶
func (*ClientPeer) ProtoMessage()
func (*ClientPeer) Reset ¶
func (m *ClientPeer) Reset()
func (*ClientPeer) String ¶
func (m *ClientPeer) String() string
func (*ClientPeer) XXX_DiscardUnknown ¶
func (m *ClientPeer) XXX_DiscardUnknown()
func (*ClientPeer) XXX_Marshal ¶
func (m *ClientPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientPeer) XXX_Merge ¶
func (m *ClientPeer) XXX_Merge(src proto.Message)
func (*ClientPeer) XXX_Size ¶
func (m *ClientPeer) XXX_Size() int
func (*ClientPeer) XXX_Unmarshal ¶
func (m *ClientPeer) XXX_Unmarshal(b []byte) error
type ClientPeerTimeout ¶
type ClientPeerTimeout struct { Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"` Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` Discovery *ClientPeerTimeoutDiscovery `protobuf:"bytes,3,opt,name=discovery,proto3" json:"discovery,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientPeerTimeout) Descriptor ¶
func (*ClientPeerTimeout) Descriptor() ([]byte, []int)
func (*ClientPeerTimeout) GetConnection ¶
func (m *ClientPeerTimeout) GetConnection() string
func (*ClientPeerTimeout) GetDiscovery ¶
func (m *ClientPeerTimeout) GetDiscovery() *ClientPeerTimeoutDiscovery
func (*ClientPeerTimeout) GetResponse ¶
func (m *ClientPeerTimeout) GetResponse() string
func (*ClientPeerTimeout) ProtoMessage ¶
func (*ClientPeerTimeout) ProtoMessage()
func (*ClientPeerTimeout) Reset ¶
func (m *ClientPeerTimeout) Reset()
func (*ClientPeerTimeout) String ¶
func (m *ClientPeerTimeout) String() string
func (*ClientPeerTimeout) XXX_DiscardUnknown ¶
func (m *ClientPeerTimeout) XXX_DiscardUnknown()
func (*ClientPeerTimeout) XXX_Marshal ¶
func (m *ClientPeerTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientPeerTimeout) XXX_Merge ¶
func (m *ClientPeerTimeout) XXX_Merge(src proto.Message)
func (*ClientPeerTimeout) XXX_Size ¶
func (m *ClientPeerTimeout) XXX_Size() int
func (*ClientPeerTimeout) XXX_Unmarshal ¶
func (m *ClientPeerTimeout) XXX_Unmarshal(b []byte) error
type ClientPeerTimeoutDiscovery ¶
type ClientPeerTimeoutDiscovery struct { // GreyListExpiry 发现服务失效列表筛选器的有效期。 // // 通道客户端将列出脱机的失效节点名单,防止在后续重试中重新选择它们。 // // 这个间隔将定义一个节点被灰列出的时间 GreyListExpiry string `protobuf:"bytes,1,opt,name=greyListExpiry,proto3" json:"greyListExpiry,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientPeerTimeoutDiscovery) Descriptor ¶
func (*ClientPeerTimeoutDiscovery) Descriptor() ([]byte, []int)
func (*ClientPeerTimeoutDiscovery) GetGreyListExpiry ¶
func (m *ClientPeerTimeoutDiscovery) GetGreyListExpiry() string
func (*ClientPeerTimeoutDiscovery) ProtoMessage ¶
func (*ClientPeerTimeoutDiscovery) ProtoMessage()
func (*ClientPeerTimeoutDiscovery) Reset ¶
func (m *ClientPeerTimeoutDiscovery) Reset()
func (*ClientPeerTimeoutDiscovery) String ¶
func (m *ClientPeerTimeoutDiscovery) String() string
func (*ClientPeerTimeoutDiscovery) XXX_DiscardUnknown ¶
func (m *ClientPeerTimeoutDiscovery) XXX_DiscardUnknown()
func (*ClientPeerTimeoutDiscovery) XXX_Marshal ¶
func (m *ClientPeerTimeoutDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientPeerTimeoutDiscovery) XXX_Merge ¶
func (m *ClientPeerTimeoutDiscovery) XXX_Merge(src proto.Message)
func (*ClientPeerTimeoutDiscovery) XXX_Size ¶
func (m *ClientPeerTimeoutDiscovery) XXX_Size() int
func (*ClientPeerTimeoutDiscovery) XXX_Unmarshal ¶
func (m *ClientPeerTimeoutDiscovery) XXX_Unmarshal(b []byte) error
type CommonRetryOpts ¶
type CommonRetryOpts struct { // 可选参数,number of retry attempts Attempts int32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"` // 可选参数,第一次重试尝试的回退间隔 InitialBackoff string `protobuf:"bytes,2,opt,name=initialBackoff,proto3" json:"initialBackoff,omitempty"` // 可选参数,任何重试尝试的最大回退间隔 MaxBackoff string `protobuf:"bytes,3,opt,name=maxBackoff,proto3" json:"maxBackoff,omitempty"` // 可选参数,该因子使初始回退期呈指数递增 BackoffFactor float32 `protobuf:"fixed32,4,opt,name=backoffFactor,proto3" json:"backoffFactor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
可选参数,查询配置块的重试选项
func (*CommonRetryOpts) Descriptor ¶
func (*CommonRetryOpts) Descriptor() ([]byte, []int)
func (*CommonRetryOpts) GetAttempts ¶
func (m *CommonRetryOpts) GetAttempts() int32
func (*CommonRetryOpts) GetBackoffFactor ¶
func (m *CommonRetryOpts) GetBackoffFactor() float32
func (*CommonRetryOpts) GetInitialBackoff ¶
func (m *CommonRetryOpts) GetInitialBackoff() string
func (*CommonRetryOpts) GetMaxBackoff ¶
func (m *CommonRetryOpts) GetMaxBackoff() string
func (*CommonRetryOpts) ProtoMessage ¶
func (*CommonRetryOpts) ProtoMessage()
func (*CommonRetryOpts) Reset ¶
func (m *CommonRetryOpts) Reset()
func (*CommonRetryOpts) String ¶
func (m *CommonRetryOpts) String() string
func (*CommonRetryOpts) XXX_DiscardUnknown ¶
func (m *CommonRetryOpts) XXX_DiscardUnknown()
func (*CommonRetryOpts) XXX_Marshal ¶
func (m *CommonRetryOpts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommonRetryOpts) XXX_Merge ¶
func (m *CommonRetryOpts) XXX_Merge(src proto.Message)
func (*CommonRetryOpts) XXX_Size ¶
func (m *CommonRetryOpts) XXX_Size() int
func (*CommonRetryOpts) XXX_Unmarshal ¶
func (m *CommonRetryOpts) XXX_Unmarshal(b []byte) error
type ConfigClient ¶
type ConfigClient interface { // 设置新的组织配置信息,用于访问fabric网络 ConfigSet(ctx context.Context, in *ReqConfigSet, opts ...grpc.CallOption) (*RespConfigSet, error) // 获取组织配置信息详情 ConfigObtain(ctx context.Context, in *ReqConfigObtain, opts ...grpc.CallOption) (*RespConfigObtain, error) // 列出已有组织信息集合 ConfigList(ctx context.Context, in *ReqConfigList, opts ...grpc.CallOption) (*RespConfigList, error) // 删除指定组织配置信息 ConfigDelete(ctx context.Context, in *ReqConfigDelete, opts ...grpc.CallOption) (*RespConfigDelete, error) }
ConfigClient is the client API for Config service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewConfigClient ¶
func NewConfigClient(cc *grpc.ClientConn) ConfigClient
type ConfigServer ¶
type ConfigServer interface { // 设置新的组织配置信息,用于访问fabric网络 ConfigSet(context.Context, *ReqConfigSet) (*RespConfigSet, error) // 获取组织配置信息详情 ConfigObtain(context.Context, *ReqConfigObtain) (*RespConfigObtain, error) // 列出已有组织信息集合 ConfigList(context.Context, *ReqConfigList) (*RespConfigList, error) // 删除指定组织配置信息 ConfigDelete(context.Context, *ReqConfigDelete) (*RespConfigDelete, error) }
ConfigServer is the server API for Config service.
type Crypto ¶
type Crypto struct { // 节点/用户私钥 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 节点/用户证书 Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` // 节点/用户tls私钥 TlsKey []byte `protobuf:"bytes,3,opt,name=tlsKey,proto3" json:"tlsKey,omitempty"` // 节点/用户tls证书 TlsCert []byte `protobuf:"bytes,4,opt,name=tlsCert,proto3" json:"tlsCert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
节点/用户密钥信息
func (*Crypto) Descriptor ¶
func (*Crypto) GetTlsCert ¶
func (*Crypto) ProtoMessage ¶
func (*Crypto) ProtoMessage()
func (*Crypto) XXX_DiscardUnknown ¶
func (m *Crypto) XXX_DiscardUnknown()
func (*Crypto) XXX_Marshal ¶
func (*Crypto) XXX_Unmarshal ¶
type Discovery ¶
type Discovery struct { // 可选参数,发现信息将检索这些随机目标的数量 MaxTargets int32 `protobuf:"varint,1,opt,name=maxTargets,proto3" json:"maxTargets,omitempty"` // 可选参数,查询配置块的重试选项 RetryOpts *CommonRetryOpts `protobuf:"bytes,2,opt,name=retryOpts,proto3" json:"retryOpts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
可选参数,检索发现信息的选项
func (*Discovery) Descriptor ¶
func (*Discovery) GetMaxTargets ¶
func (*Discovery) GetRetryOpts ¶
func (m *Discovery) GetRetryOpts() *CommonRetryOpts
func (*Discovery) ProtoMessage ¶
func (*Discovery) ProtoMessage()
func (*Discovery) XXX_DiscardUnknown ¶
func (m *Discovery) XXX_DiscardUnknown()
func (*Discovery) XXX_Marshal ¶
func (*Discovery) XXX_Unmarshal ¶
type EventService ¶
type EventService struct { // 可选参数 // // PreferOrg: // 根据块高度滞后阈值确定哪些对等点是合适的,尽管它们更适用当前组织中的对等点(只要它们的块高度高于配置的阈值)。如果当前组织中的对等点都不合适,则选择另一个组织中的对等点 // // MinBlockHeight: // 根据块高度滞后阈值选择最佳的对等点。所有对等点的最大块高度被确定,那些块高度低于最大高度但高于规定的“滞后”阈值的对等点被负载均衡。不考虑其他节点 // // Balanced: // 使用配置的平衡器选择对等点 ResolverStrategy string `protobuf:"bytes,1,opt,name=resolverStrategy,proto3" json:"resolverStrategy,omitempty"` // 可选参数 // // 当选择一个对等点连接到可能的值时使用的负载均衡[Random (default), RoundRobin] Balancer string `protobuf:"bytes,2,opt,name=balancer,proto3" json:"balancer,omitempty"` // 可选参数 // // 设置块高度滞后阈值。此值用于选择要连接的对等点。如果一个节点落后于最新的节点超过给定的块数,那么它将被排除在选择之外 // 注意,此参数仅适用于minBlockHeightResolverMode设置为ResolveByThreshold时 // 默认值:5 BlockHeightLagThreshold int64 `protobuf:"varint,3,opt,name=blockHeightLagThreshold,proto3" json:"blockHeightLagThreshold,omitempty"` // 可选参数 // // reconnectBlockHeightLagThreshold—如果对等方的块高度低于指定的块数,则事件客户机将断开与对等方的连接,并重新连接到性能更好的对等方 // // 注意,此参数仅适用于peerMonitor设置为Enabled(默认)的情况 // // 默认值:10 // // 注意:设置此值过低可能会导致事件客户端过于频繁地断开/重新连接,从而影响性能 ReconnectBlockHeightLagThreshold int64 `protobuf:"varint,4,opt,name=reconnectBlockHeightLagThreshold,proto3" json:"reconnectBlockHeightLagThreshold,omitempty"` // 可选参数 // // peerMonitorPeriod是监视连接的对等点以查看事件客户端是否应该断开连接并重新连接到另一个对等点的时间段 // // 默认:0(禁用)用于平衡冲突解决策略;优先级和MinBlockHeight策略的5s PeerMonitorPeriod string `protobuf:"bytes,5,opt,name=peerMonitorPeriod,proto3" json:"peerMonitorPeriod,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
可选参数,事件服务的选项
func (*EventService) Descriptor ¶
func (*EventService) Descriptor() ([]byte, []int)
func (*EventService) GetBalancer ¶
func (m *EventService) GetBalancer() string
func (*EventService) GetBlockHeightLagThreshold ¶
func (m *EventService) GetBlockHeightLagThreshold() int64
func (*EventService) GetPeerMonitorPeriod ¶
func (m *EventService) GetPeerMonitorPeriod() string
func (*EventService) GetReconnectBlockHeightLagThreshold ¶
func (m *EventService) GetReconnectBlockHeightLagThreshold() int64
func (*EventService) GetResolverStrategy ¶
func (m *EventService) GetResolverStrategy() string
func (*EventService) ProtoMessage ¶
func (*EventService) ProtoMessage()
func (*EventService) Reset ¶
func (m *EventService) Reset()
func (*EventService) String ¶
func (m *EventService) String() string
func (*EventService) XXX_DiscardUnknown ¶
func (m *EventService) XXX_DiscardUnknown()
func (*EventService) XXX_Marshal ¶
func (m *EventService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventService) XXX_Merge ¶
func (m *EventService) XXX_Merge(src proto.Message)
func (*EventService) XXX_Size ¶
func (m *EventService) XXX_Size() int
func (*EventService) XXX_Unmarshal ¶
func (m *EventService) XXX_Unmarshal(b []byte) error
type GRPCOptions ¶
type GRPCOptions struct { // orderer.example.com || peer0.org1.example.com SslTargetNameOverride string `protobuf:"bytes,1,opt,name=sslTargetNameOverride,proto3" json:"sslTargetNameOverride,omitempty"` // keepAliveTime // // 这些参数应该与服务器上的keepalive策略协调设置,因为不兼容的设置可能导致连接关闭 // // 当“keep-alive-time”的持续时间设置为0或更少时,将禁用keep alive客户端参数 KeepAliveTime string `protobuf:"bytes,2,opt,name=keepAliveTime,proto3" json:"keepAliveTime,omitempty"` // keepAliveTimeout // // 这些参数应该与服务器上的keepalive策略协调设置,因为不兼容的设置可能导致连接关闭 // // 当“keep-alive-time”的持续时间设置为0或更少时,将禁用keep alive客户端参数 KeepAliveTimeout string `protobuf:"bytes,3,opt,name=keepAliveTimeout,proto3" json:"keepAliveTimeout,omitempty"` // keepAlivePermit // // 这些参数应该与服务器上的keepalive策略协调设置,因为不兼容的设置可能导致连接关闭 // // 当“keep-alive-time”的持续时间设置为0或更少时,将禁用keep alive客户端参数 KeepAlivePermit bool `protobuf:"varint,4,opt,name=keepAlivePermit,proto3" json:"keepAlivePermit,omitempty"` FailFast bool `protobuf:"varint,5,opt,name=failFast,proto3" json:"failFast,omitempty"` // 如果地址没有定义协议,则考虑允许不安全;如果为true,则考虑grpc或其他grpc AllowInsecure bool `protobuf:"varint,6,opt,name=allowInsecure,proto3" json:"allowInsecure,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GRPCOptions) Descriptor ¶
func (*GRPCOptions) Descriptor() ([]byte, []int)
func (*GRPCOptions) GetAllowInsecure ¶
func (m *GRPCOptions) GetAllowInsecure() bool
func (*GRPCOptions) GetFailFast ¶
func (m *GRPCOptions) GetFailFast() bool
func (*GRPCOptions) GetKeepAlivePermit ¶
func (m *GRPCOptions) GetKeepAlivePermit() bool
func (*GRPCOptions) GetKeepAliveTime ¶
func (m *GRPCOptions) GetKeepAliveTime() string
func (*GRPCOptions) GetKeepAliveTimeout ¶
func (m *GRPCOptions) GetKeepAliveTimeout() string
func (*GRPCOptions) GetSslTargetNameOverride ¶
func (m *GRPCOptions) GetSslTargetNameOverride() string
func (*GRPCOptions) ProtoMessage ¶
func (*GRPCOptions) ProtoMessage()
func (*GRPCOptions) Reset ¶
func (m *GRPCOptions) Reset()
func (*GRPCOptions) String ¶
func (m *GRPCOptions) String() string
func (*GRPCOptions) XXX_DiscardUnknown ¶
func (m *GRPCOptions) XXX_DiscardUnknown()
func (*GRPCOptions) XXX_Marshal ¶
func (m *GRPCOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GRPCOptions) XXX_Merge ¶
func (m *GRPCOptions) XXX_Merge(src proto.Message)
func (*GRPCOptions) XXX_Size ¶
func (m *GRPCOptions) XXX_Size() int
func (*GRPCOptions) XXX_Unmarshal ¶
func (m *GRPCOptions) XXX_Unmarshal(b []byte) error
type Node ¶
type Node struct { // orderer名称,如:orderer0 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // grpcs://127.0.0.1:7050 Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // 这些是由gRPC库定义的标准属性,它们将按原样传递给gRPC客户端构造函数 GrpcOptions *GRPCOptions `protobuf:"bytes,6,opt,name=grpcOptions,proto3" json:"grpcOptions,omitempty"` // 节点密钥信息 Crypto *Crypto `protobuf:"bytes,5,opt,name=crypto,proto3" json:"crypto,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
发送事务和通道创建/更新请求
func (*Node) Descriptor ¶
func (*Node) GetGrpcOptions ¶
func (m *Node) GetGrpcOptions() *GRPCOptions
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Orderer ¶
type Orderer struct { // 排序根域名,并不一定要与联盟根域名相同,如:order.com Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // 这个应用程序实例属于某个组织,值必须是在“组织”下定义的组织的名称,如:Order或league-order Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 可选参数,组织在创世中的ID,如:OrderMSP,默认${name}MSP MspID string `protobuf:"bytes,4,opt,name=mspID,proto3" json:"mspID,omitempty"` // 组织当前使用用户,如:Admin/User0 Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` // 用户信息 User *User `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"` // 组织可访问orderer集合 Nodes []*Node `protobuf:"bytes,8,rep,name=nodes,proto3" json:"nodes,omitempty"` // 组织根证书 CertBytes []byte `protobuf:"bytes,9,opt,name=certBytes,proto3" json:"certBytes,omitempty"` // 组织tls根证书 TlsCertBytes []byte `protobuf:"bytes,10,opt,name=tlsCertBytes,proto3" json:"tlsCertBytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
排序节点信息
func (*Orderer) Descriptor ¶
func (*Orderer) GetCertBytes ¶
func (*Orderer) GetTlsCertBytes ¶
func (*Orderer) GetUsername ¶
func (*Orderer) ProtoMessage ¶
func (*Orderer) ProtoMessage()
func (*Orderer) XXX_DiscardUnknown ¶
func (m *Orderer) XXX_DiscardUnknown()
func (*Orderer) XXX_Marshal ¶
func (*Orderer) XXX_Unmarshal ¶
type OrdererTLSCACerts ¶
type OrdererTLSCACerts struct { // 证书位置绝对路径 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrdererTLSCACerts) Descriptor ¶
func (*OrdererTLSCACerts) Descriptor() ([]byte, []int)
func (*OrdererTLSCACerts) GetPath ¶
func (m *OrdererTLSCACerts) GetPath() string
func (*OrdererTLSCACerts) ProtoMessage ¶
func (*OrdererTLSCACerts) ProtoMessage()
func (*OrdererTLSCACerts) Reset ¶
func (m *OrdererTLSCACerts) Reset()
func (*OrdererTLSCACerts) String ¶
func (m *OrdererTLSCACerts) String() string
func (*OrdererTLSCACerts) XXX_DiscardUnknown ¶
func (m *OrdererTLSCACerts) XXX_DiscardUnknown()
func (*OrdererTLSCACerts) XXX_Marshal ¶
func (m *OrdererTLSCACerts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrdererTLSCACerts) XXX_Merge ¶
func (m *OrdererTLSCACerts) XXX_Merge(src proto.Message)
func (*OrdererTLSCACerts) XXX_Size ¶
func (m *OrdererTLSCACerts) XXX_Size() int
func (*OrdererTLSCACerts) XXX_Unmarshal ¶
func (m *OrdererTLSCACerts) XXX_Unmarshal(b []byte) error
type Org ¶
type Org struct { // 必填参数,预测或确认该值,组织根域名,并不一定要与联盟根域名相同,如:org.com Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // 必填参数,预测或确认该值,这个应用程序实例属于某个组织,值必须是在“组织”下定义的组织的名称,如:Org1或league-org1 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 可选参数,组织在创世中的ID,如:Org1MSP,默认${name}MSP MspID string `protobuf:"bytes,4,opt,name=mspID,proto3" json:"mspID,omitempty"` // 必填参数,预测或确认该值,组织当前使用用户,如:Admin/User0 Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` // 组织下节点集合 Peers []*Peer `protobuf:"bytes,6,rep,name=peers,proto3" json:"peers,omitempty"` // 组织下用户集合 Users []*User `protobuf:"bytes,7,rep,name=users,proto3" json:"users,omitempty"` // 组织下fabric-ca集合 Cas []*CertificateAuthority `protobuf:"bytes,8,rep,name=cas,proto3" json:"cas,omitempty"` // 组织根证书 CertBytes []byte `protobuf:"bytes,9,opt,name=certBytes,proto3" json:"certBytes,omitempty"` // 组织tls根证书 TlsCertBytes []byte `protobuf:"bytes,10,opt,name=tlsCertBytes,proto3" json:"tlsCertBytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
组织节点信息
func (*Org) Descriptor ¶
func (*Org) GetCas ¶
func (m *Org) GetCas() []*CertificateAuthority
func (*Org) GetCertBytes ¶
func (*Org) GetTlsCertBytes ¶
func (*Org) GetUsername ¶
func (*Org) ProtoMessage ¶
func (*Org) ProtoMessage()
func (*Org) XXX_DiscardUnknown ¶
func (m *Org) XXX_DiscardUnknown()
func (*Org) XXX_Unmarshal ¶
type OrgConfig ¶
type OrgConfig struct { // 联盟根域名,如:example.com LeagueDomain string `protobuf:"bytes,1,opt,name=leagueDomain,proto3" json:"leagueDomain,omitempty"` // 组织域名,如org.com OrgDomain string `protobuf:"bytes,2,opt,name=orgDomain,proto3" json:"orgDomain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrgConfig) Descriptor ¶
func (*OrgConfig) GetLeagueDomain ¶
func (*OrgConfig) GetOrgDomain ¶
func (*OrgConfig) ProtoMessage ¶
func (*OrgConfig) ProtoMessage()
func (*OrgConfig) XXX_DiscardUnknown ¶
func (m *OrgConfig) XXX_DiscardUnknown()
func (*OrgConfig) XXX_Marshal ¶
func (*OrgConfig) XXX_Unmarshal ¶
type Peer ¶
type Peer struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 此URL用于发送背书和查询请求,grpc://peer0.org1.example.com:7051 Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // eventUrl只在使用eventhub时才需要(默认是交付服务),grpc://peer0.org1.example.com:7053 EventUrl string `protobuf:"bytes,3,opt,name=eventUrl,proto3" json:"eventUrl,omitempty"` // 这些是由gRPC库定义的标准属性,它们将按原样传递给gRPC客户端构造函数 GrpcOptions *GRPCOptions `protobuf:"bytes,4,opt,name=grpcOptions,proto3" json:"grpcOptions,omitempty"` // 节点密钥信息 Crypto *Crypto `protobuf:"bytes,5,opt,name=crypto,proto3" json:"crypto,omitempty"` // 可选参数 // // 是否会向该节点发送交易以供其背书,节点必须安装chaincode。应用程序也可以使用这个属性来决定发送chaincode安装请求的节点。 // // 默认值:true EndorsingPeer bool `protobuf:"varint,6,opt,name=endorsingPeer,proto3" json:"endorsingPeer,omitempty"` // 可选参数 // // 这个节点是否可被发送查询建议,节点必须安装chaincode。应用程序也可以使用这个属性来决定发送chaincode安装请求的节点。 // // 默认值:true ChaincodeQuery bool `protobuf:"varint,7,opt,name=chaincodeQuery,proto3" json:"chaincodeQuery,omitempty"` // 可选参数 // // 这个节点是否可发送不需要链码的查询建议,如queryBlock()、queryTransaction()等。 // // 默认值:true LedgerQuery bool `protobuf:"varint,8,opt,name=ledgerQuery,proto3" json:"ledgerQuery,omitempty"` // 可选参数 // // 这个节点是否是SDK侦听器注册的目标,所有的对等点都可以产生事件,但应用程序通常只需要连接一个来监听事件。 // // 默认值:true EventSource bool `protobuf:"varint,9,opt,name=eventSource,proto3" json:"eventSource,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
节点,用于发送各种请求的节点列表,包括背书、查询和事件侦听器注册
func (*Peer) Descriptor ¶
func (*Peer) GetChaincodeQuery ¶
func (*Peer) GetEndorsingPeer ¶
func (*Peer) GetEventSource ¶
func (*Peer) GetEventUrl ¶
func (*Peer) GetGrpcOptions ¶
func (m *Peer) GetGrpcOptions() *GRPCOptions
func (*Peer) GetLedgerQuery ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type Policy ¶
type Policy struct { // 可选参数,用于检索通道配置块的选项 QueryChannelConfig *QueryChannelConfig `protobuf:"bytes,1,opt,name=queryChannelConfig,proto3" json:"queryChannelConfig,omitempty"` // 可选参数,检索发现信息的选项 Discovery *Discovery `protobuf:"bytes,2,opt,name=discovery,proto3" json:"discovery,omitempty"` // 可选参数,事件服务的选项 EventService *EventService `protobuf:"bytes,3,opt,name=eventService,proto3" json:"eventService,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
可选参数,应用程序可以使用这些选项来执行通道操作,如检索通道配置等
func (*Policy) Descriptor ¶
func (*Policy) GetDiscovery ¶
func (*Policy) GetEventService ¶
func (m *Policy) GetEventService() *EventService
func (*Policy) GetQueryChannelConfig ¶
func (m *Policy) GetQueryChannelConfig() *QueryChannelConfig
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶
func (*Policy) XXX_Unmarshal ¶
type QueryChannelConfig ¶
type QueryChannelConfig struct { // 可选参数,最小成功响应数(来自目标/节点) MinResponses int32 `protobuf:"varint,1,opt,name=minResponses,proto3" json:"minResponses,omitempty"` // 可选参数,通道配置将为这些数目的随机目标检索 MaxTargets int32 `protobuf:"varint,2,opt,name=maxTargets,proto3" json:"maxTargets,omitempty"` // 可选参数,查询配置块的重试选项 RetryOpts *CommonRetryOpts `protobuf:"bytes,3,opt,name=retryOpts,proto3" json:"retryOpts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
可选参数,用于检索通道配置块的选项
func (*QueryChannelConfig) Descriptor ¶
func (*QueryChannelConfig) Descriptor() ([]byte, []int)
func (*QueryChannelConfig) GetMaxTargets ¶
func (m *QueryChannelConfig) GetMaxTargets() int32
func (*QueryChannelConfig) GetMinResponses ¶
func (m *QueryChannelConfig) GetMinResponses() int32
func (*QueryChannelConfig) GetRetryOpts ¶
func (m *QueryChannelConfig) GetRetryOpts() *CommonRetryOpts
func (*QueryChannelConfig) ProtoMessage ¶
func (*QueryChannelConfig) ProtoMessage()
func (*QueryChannelConfig) Reset ¶
func (m *QueryChannelConfig) Reset()
func (*QueryChannelConfig) String ¶
func (m *QueryChannelConfig) String() string
func (*QueryChannelConfig) XXX_DiscardUnknown ¶
func (m *QueryChannelConfig) XXX_DiscardUnknown()
func (*QueryChannelConfig) XXX_Marshal ¶
func (m *QueryChannelConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryChannelConfig) XXX_Merge ¶
func (m *QueryChannelConfig) XXX_Merge(src proto.Message)
func (*QueryChannelConfig) XXX_Size ¶
func (m *QueryChannelConfig) XXX_Size() int
func (*QueryChannelConfig) XXX_Unmarshal ¶
func (m *QueryChannelConfig) XXX_Unmarshal(b []byte) error
type Registrar ¶
type Registrar struct { EnrollId string `protobuf:"bytes,1,opt,name=enrollId,proto3" json:"enrollId,omitempty"` EnrollSecret string `protobuf:"bytes,2,opt,name=enrollSecret,proto3" json:"enrollSecret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Registrar) Descriptor ¶
func (*Registrar) GetEnrollId ¶
func (*Registrar) GetEnrollSecret ¶
func (*Registrar) ProtoMessage ¶
func (*Registrar) ProtoMessage()
func (*Registrar) XXX_DiscardUnknown ¶
func (m *Registrar) XXX_DiscardUnknown()
func (*Registrar) XXX_Marshal ¶
func (*Registrar) XXX_Unmarshal ¶
type ReqConfigDelete ¶
type ReqConfigDelete struct { Configs []*OrgConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqConfigDelete) Descriptor ¶
func (*ReqConfigDelete) Descriptor() ([]byte, []int)
func (*ReqConfigDelete) GetConfigs ¶
func (m *ReqConfigDelete) GetConfigs() []*OrgConfig
func (*ReqConfigDelete) ProtoMessage ¶
func (*ReqConfigDelete) ProtoMessage()
func (*ReqConfigDelete) Reset ¶
func (m *ReqConfigDelete) Reset()
func (*ReqConfigDelete) String ¶
func (m *ReqConfigDelete) String() string
func (*ReqConfigDelete) XXX_DiscardUnknown ¶
func (m *ReqConfigDelete) XXX_DiscardUnknown()
func (*ReqConfigDelete) XXX_Marshal ¶
func (m *ReqConfigDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqConfigDelete) XXX_Merge ¶
func (m *ReqConfigDelete) XXX_Merge(src proto.Message)
func (*ReqConfigDelete) XXX_Size ¶
func (m *ReqConfigDelete) XXX_Size() int
func (*ReqConfigDelete) XXX_Unmarshal ¶
func (m *ReqConfigDelete) XXX_Unmarshal(b []byte) error
type ReqConfigList ¶
type ReqConfigList struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqConfigList) Descriptor ¶
func (*ReqConfigList) Descriptor() ([]byte, []int)
func (*ReqConfigList) ProtoMessage ¶
func (*ReqConfigList) ProtoMessage()
func (*ReqConfigList) Reset ¶
func (m *ReqConfigList) Reset()
func (*ReqConfigList) String ¶
func (m *ReqConfigList) String() string
func (*ReqConfigList) XXX_DiscardUnknown ¶
func (m *ReqConfigList) XXX_DiscardUnknown()
func (*ReqConfigList) XXX_Marshal ¶
func (m *ReqConfigList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqConfigList) XXX_Merge ¶
func (m *ReqConfigList) XXX_Merge(src proto.Message)
func (*ReqConfigList) XXX_Size ¶
func (m *ReqConfigList) XXX_Size() int
func (*ReqConfigList) XXX_Unmarshal ¶
func (m *ReqConfigList) XXX_Unmarshal(b []byte) error
type ReqConfigObtain ¶
type ReqConfigObtain struct { // 联盟根域名,如:example.com LeagueDomain string `protobuf:"bytes,1,opt,name=leagueDomain,proto3" json:"leagueDomain,omitempty"` // 组织域名,如org.com OrgDomain string `protobuf:"bytes,2,opt,name=orgDomain,proto3" json:"orgDomain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReqConfigObtain) Descriptor ¶
func (*ReqConfigObtain) Descriptor() ([]byte, []int)
func (*ReqConfigObtain) GetLeagueDomain ¶
func (m *ReqConfigObtain) GetLeagueDomain() string
func (*ReqConfigObtain) GetOrgDomain ¶
func (m *ReqConfigObtain) GetOrgDomain() string
func (*ReqConfigObtain) ProtoMessage ¶
func (*ReqConfigObtain) ProtoMessage()
func (*ReqConfigObtain) Reset ¶
func (m *ReqConfigObtain) Reset()
func (*ReqConfigObtain) String ¶
func (m *ReqConfigObtain) String() string
func (*ReqConfigObtain) XXX_DiscardUnknown ¶
func (m *ReqConfigObtain) XXX_DiscardUnknown()
func (*ReqConfigObtain) XXX_Marshal ¶
func (m *ReqConfigObtain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqConfigObtain) XXX_Merge ¶
func (m *ReqConfigObtain) XXX_Merge(src proto.Message)
func (*ReqConfigObtain) XXX_Size ¶
func (m *ReqConfigObtain) XXX_Size() int
func (*ReqConfigObtain) XXX_Unmarshal ¶
func (m *ReqConfigObtain) XXX_Unmarshal(b []byte) error
type ReqConfigSet ¶
type ReqConfigSet struct { // Version 内容的版本。用于SDK应用相应的解析规则 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // 联盟根域名,如:example.com LeagueDomain string `protobuf:"bytes,2,opt,name=leagueDomain,proto3" json:"leagueDomain,omitempty"` // 排序节点信息 Orderer *Orderer `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"` // 组织节点信息 Org *Org `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` // Client go sdk 使用的客户端 Client *Client `protobuf:"bytes,5,opt,name=client,proto3" json:"client,omitempty"` // 联盟通道信息集合 Channels map[string]*Channel `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
fabric网络配置请求
func (*ReqConfigSet) Descriptor ¶
func (*ReqConfigSet) Descriptor() ([]byte, []int)
func (*ReqConfigSet) GetChannels ¶
func (m *ReqConfigSet) GetChannels() map[string]*Channel
func (*ReqConfigSet) GetClient ¶
func (m *ReqConfigSet) GetClient() *Client
func (*ReqConfigSet) GetLeagueDomain ¶
func (m *ReqConfigSet) GetLeagueDomain() string
func (*ReqConfigSet) GetOrderer ¶
func (m *ReqConfigSet) GetOrderer() *Orderer
func (*ReqConfigSet) GetOrg ¶
func (m *ReqConfigSet) GetOrg() *Org
func (*ReqConfigSet) GetVersion ¶
func (m *ReqConfigSet) GetVersion() string
func (*ReqConfigSet) ProtoMessage ¶
func (*ReqConfigSet) ProtoMessage()
func (*ReqConfigSet) Reset ¶
func (m *ReqConfigSet) Reset()
func (*ReqConfigSet) String ¶
func (m *ReqConfigSet) String() string
func (*ReqConfigSet) XXX_DiscardUnknown ¶
func (m *ReqConfigSet) XXX_DiscardUnknown()
func (*ReqConfigSet) XXX_Marshal ¶
func (m *ReqConfigSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqConfigSet) XXX_Merge ¶
func (m *ReqConfigSet) XXX_Merge(src proto.Message)
func (*ReqConfigSet) XXX_Size ¶
func (m *ReqConfigSet) XXX_Size() int
func (*ReqConfigSet) XXX_Unmarshal ¶
func (m *ReqConfigSet) XXX_Unmarshal(b []byte) error
type RespConfigDelete ¶
type RespConfigDelete struct { // 请求返回结果:success=0;fail=1 Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=config.Code" json:"code,omitempty"` // 当且仅当返回码为1时,此处包含错误信息 ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
fabric网络配置请求返回
func (*RespConfigDelete) Descriptor ¶
func (*RespConfigDelete) Descriptor() ([]byte, []int)
func (*RespConfigDelete) GetCode ¶
func (m *RespConfigDelete) GetCode() Code
func (*RespConfigDelete) GetErrMsg ¶
func (m *RespConfigDelete) GetErrMsg() string
func (*RespConfigDelete) ProtoMessage ¶
func (*RespConfigDelete) ProtoMessage()
func (*RespConfigDelete) Reset ¶
func (m *RespConfigDelete) Reset()
func (*RespConfigDelete) String ¶
func (m *RespConfigDelete) String() string
func (*RespConfigDelete) XXX_DiscardUnknown ¶
func (m *RespConfigDelete) XXX_DiscardUnknown()
func (*RespConfigDelete) XXX_Marshal ¶
func (m *RespConfigDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespConfigDelete) XXX_Merge ¶
func (m *RespConfigDelete) XXX_Merge(src proto.Message)
func (*RespConfigDelete) XXX_Size ¶
func (m *RespConfigDelete) XXX_Size() int
func (*RespConfigDelete) XXX_Unmarshal ¶
func (m *RespConfigDelete) XXX_Unmarshal(b []byte) error
type RespConfigList ¶
type RespConfigList struct { // 请求返回结果:success=0;fail=1 Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=config.Code" json:"code,omitempty"` // 当且仅当返回码为1时,此处包含错误信息 ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` Configs []*OrgConfig `protobuf:"bytes,3,rep,name=configs,proto3" json:"configs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespConfigList) Descriptor ¶
func (*RespConfigList) Descriptor() ([]byte, []int)
func (*RespConfigList) GetCode ¶
func (m *RespConfigList) GetCode() Code
func (*RespConfigList) GetConfigs ¶
func (m *RespConfigList) GetConfigs() []*OrgConfig
func (*RespConfigList) GetErrMsg ¶
func (m *RespConfigList) GetErrMsg() string
func (*RespConfigList) ProtoMessage ¶
func (*RespConfigList) ProtoMessage()
func (*RespConfigList) Reset ¶
func (m *RespConfigList) Reset()
func (*RespConfigList) String ¶
func (m *RespConfigList) String() string
func (*RespConfigList) XXX_DiscardUnknown ¶
func (m *RespConfigList) XXX_DiscardUnknown()
func (*RespConfigList) XXX_Marshal ¶
func (m *RespConfigList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespConfigList) XXX_Merge ¶
func (m *RespConfigList) XXX_Merge(src proto.Message)
func (*RespConfigList) XXX_Size ¶
func (m *RespConfigList) XXX_Size() int
func (*RespConfigList) XXX_Unmarshal ¶
func (m *RespConfigList) XXX_Unmarshal(b []byte) error
type RespConfigObtain ¶
type RespConfigObtain struct { // 请求返回结果:success=0;fail=1 Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=config.Code" json:"code,omitempty"` // 当且仅当返回码为1时,此处包含错误信息 ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` ConfigBytes []byte `protobuf:"bytes,3,opt,name=configBytes,proto3" json:"configBytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RespConfigObtain) Descriptor ¶
func (*RespConfigObtain) Descriptor() ([]byte, []int)
func (*RespConfigObtain) GetCode ¶
func (m *RespConfigObtain) GetCode() Code
func (*RespConfigObtain) GetConfigBytes ¶
func (m *RespConfigObtain) GetConfigBytes() []byte
func (*RespConfigObtain) GetErrMsg ¶
func (m *RespConfigObtain) GetErrMsg() string
func (*RespConfigObtain) ProtoMessage ¶
func (*RespConfigObtain) ProtoMessage()
func (*RespConfigObtain) Reset ¶
func (m *RespConfigObtain) Reset()
func (*RespConfigObtain) String ¶
func (m *RespConfigObtain) String() string
func (*RespConfigObtain) XXX_DiscardUnknown ¶
func (m *RespConfigObtain) XXX_DiscardUnknown()
func (*RespConfigObtain) XXX_Marshal ¶
func (m *RespConfigObtain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespConfigObtain) XXX_Merge ¶
func (m *RespConfigObtain) XXX_Merge(src proto.Message)
func (*RespConfigObtain) XXX_Size ¶
func (m *RespConfigObtain) XXX_Size() int
func (*RespConfigObtain) XXX_Unmarshal ¶
func (m *RespConfigObtain) XXX_Unmarshal(b []byte) error
type RespConfigSet ¶
type RespConfigSet struct { // 请求返回结果:success=0;fail=1 Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=config.Code" json:"code,omitempty"` // 当且仅当返回码为1时,此处包含错误信息 ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
fabric网络配置请求返回
func (*RespConfigSet) Descriptor ¶
func (*RespConfigSet) Descriptor() ([]byte, []int)
func (*RespConfigSet) GetCode ¶
func (m *RespConfigSet) GetCode() Code
func (*RespConfigSet) GetErrMsg ¶
func (m *RespConfigSet) GetErrMsg() string
func (*RespConfigSet) ProtoMessage ¶
func (*RespConfigSet) ProtoMessage()
func (*RespConfigSet) Reset ¶
func (m *RespConfigSet) Reset()
func (*RespConfigSet) String ¶
func (m *RespConfigSet) String() string
func (*RespConfigSet) XXX_DiscardUnknown ¶
func (m *RespConfigSet) XXX_DiscardUnknown()
func (*RespConfigSet) XXX_Marshal ¶
func (m *RespConfigSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespConfigSet) XXX_Merge ¶
func (m *RespConfigSet) XXX_Merge(src proto.Message)
func (*RespConfigSet) XXX_Size ¶
func (m *RespConfigSet) XXX_Size() int
func (*RespConfigSet) XXX_Unmarshal ¶
func (m *RespConfigSet) XXX_Unmarshal(b []byte) error
type User ¶
type User struct { // 用户名,如:Admin/User0 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 是否为管理员用户 IsAdmin bool `protobuf:"varint,2,opt,name=isAdmin,proto3" json:"isAdmin,omitempty"` // 用户密钥信息 Crypto *Crypto `protobuf:"bytes,5,opt,name=crypto,proto3" json:"crypto,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
组织用户
func (*User) Descriptor ¶
func (*User) GetIsAdmin ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.