Versions in this module Expand all Collapse all v1 v1.0.0 Mar 3, 2023 Changes in this version + const EmptyTransactionID + const SystemChannel + const V1_1Capability + const V1_2Capability + type BalancerType string + const Random + const RoundRobin + type BlockEvent struct + Block *cb.Block + SourceURL string + type BlockFilter func(block *cb.Block) bool + type BlockchainInfoResponse struct + BCI *common.BlockchainInfo + Endorser string + Status int32 + type CCEvent struct + BlockNumber uint64 + ChaincodeID string + EventName string + Payload []byte + SourceURL string + TxID string + type CertKeyPair struct + Cert []byte + Key []byte + type ChaincodeCall struct + Collections []string + ID string + type ChaincodeInvokeRequest struct + Args [][]byte + ChaincodeID string + Fcn string + IsInit bool + Lang pb.ChaincodeSpec_Type + TransientMap map[string][]byte + type ChannelCfg interface + AnchorPeers func() []*OrgAnchorPeer + BlockNumber func() uint64 + HasCapability func(group ConfigGroupKey, capability string) bool + ID func() string + MSPs func() []*mspCfg.MSPConfig + Orderers func() []string + Versions func() *Versions + type ChannelConfig interface + Query func(reqCtx reqContext.Context) (ChannelCfg, error) + QueryBlock func(reqCtx reqContext.Context) (*common.Block, error) + type ChannelEndpointConfig struct + Orderers []string + Peers map[string]PeerChannelConfig + Policies ChannelPolicies + type ChannelMembership interface + ContainsMSP func(msp string) bool + Validate func(serializedID []byte) error + Verify func(serializedID []byte, msg []byte, sig []byte) error + type ChannelPeer struct + type ChannelPolicies struct + Discovery DiscoveryPolicy + EventService EventServicePolicy + QueryChannelConfig QueryChannelConfigPolicy + Selection SelectionPolicy + type ChannelProvider interface + ChannelService func(ctx ClientContext, channelID string) (ChannelService, error) + type ChannelService interface + ChannelConfig func() (ChannelCfg, error) + Config func() (ChannelConfig, error) + Discovery func() (DiscoveryService, error) + EventService func(opts ...options.Opt) (EventService, error) + Membership func() (ChannelMembership, error) + Selection func() (SelectionService, error) + Transactor func(reqCtx reqContext.Context) (Transactor, error) + type ClientContext interface + type CommManager interface + DialContext func(ctx reqContext.Context, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) + ReleaseConn func(conn *grpc.ClientConn) + type ConfigGroupKey string + const ApplicationGroupKey + const ChannelGroupKey + const OrdererGroupKey + type ConnectionEvent struct + Connected bool + Err error + type DiscoveryPolicy struct + MaxTargets int + MinResponses int + RetryOpts retry.Opts + type DiscoveryService interface + GetPeers func() ([]Peer, error) + type EnabledDisabled string + const Disabled + const Enabled + type EndpointConfig interface + ChannelConfig func(name string) *ChannelEndpointConfig + ChannelOrderers func(name string) []OrdererConfig + ChannelPeers func(name string) []ChannelPeer + CryptoConfigPath func() string + NetworkConfig func() *NetworkConfig + NetworkPeers func() []NetworkPeer + OrdererConfig func(nameOrURL string) (*OrdererConfig, bool, bool) + OrderersConfig func() []OrdererConfig + PeerConfig func(nameOrURL string) (*PeerConfig, bool) + PeersConfig func(org string) ([]PeerConfig, bool) + TLSCACertPool func() commtls.CertPool + TLSClientCerts func() []tls.Certificate + Timeout func(TimeoutType) time.Duration + type ErrorHandler func(ctxt ClientContext, channelID string, err error) + type EventClient interface + Close func() + CloseIfIdle func() bool + Connect func() error + TransferRegistrations func(close bool) (EventSnapshot, error) + type EventService interface + RegisterBlockEvent func(filter ...BlockFilter) (Registration, <-chan *BlockEvent, error) + RegisterChaincodeEvent func(ccID, eventFilter string) (Registration, <-chan *CCEvent, error) + RegisterFilteredBlockEvent func() (Registration, <-chan *FilteredBlockEvent, error) + RegisterTxStatusEvent func(txID string) (Registration, <-chan *TxStatusEvent, error) + Unregister func(reg Registration) + type EventServicePolicy struct + Balancer BalancerType + BlockHeightLagThreshold int + MinBlockHeightResolverMode MinBlockHeightResolverMode + PeerMonitor EnabledDisabled + PeerMonitorPeriod time.Duration + ReconnectBlockHeightLagThreshold int + ResolverStrategy ResolverStrategy + type EventSnapshot interface + BlockRegistrations func() []Registration + CCRegistrations func() []Registration + Close func() + FilteredBlockRegistrations func() []Registration + LastBlockReceived func() uint64 + TxStatusRegistrations func() []Registration + type FilteredBlockEvent struct + FilteredBlock *pb.FilteredBlock + SourceURL string + type InfraProvider interface + Close func() + CommManager func() CommManager + CreateOrdererFromConfig func(cfg *OrdererConfig) (Orderer, error) + CreatePeerFromConfig func(peerCfg *NetworkPeer) (Peer, error) + type LocalDiscoveryProvider interface + CreateLocalDiscoveryService func(mspID string) (DiscoveryService, error) + type MetricsProvider interface + GetMetrics func() *metrics.ClientMetrics + type MinBlockHeightResolverMode string + const ResolveByThreshold + const ResolveLatest + type NetworkConfig struct + Channels map[string]ChannelEndpointConfig + Orderers map[string]OrdererConfig + Organizations map[string]OrganizationConfig + Peers map[string]PeerConfig + type NetworkPeer struct + MSPID string + Properties map[Property]interface{} + type Orderer interface + SendBroadcast func(ctx reqContext.Context, envelope *SignedEnvelope) (*common.Status, error) + SendDeliver func(ctx reqContext.Context, envelope *SignedEnvelope) (chan *common.Block, chan error) + URL func() string + type OrdererConfig struct + GRPCOptions map[string]interface{} + TLSCACert *x509.Certificate + URL string + type OrgAnchorPeer struct + Host string + Org string + Port int32 + type OrganizationConfig struct + CertificateAuthorities []string + CryptoPath string + MSPID string + Peers []string + Users map[string]CertKeyPair + type Peer interface + MSPID func() string + Properties func() Properties + URL func() string + type PeerChannelConfig struct + ChaincodeQuery bool + EndorsingPeer bool + EventSource bool + LedgerQuery bool + type PeerConfig struct + GRPCOptions map[string]interface{} + TLSCACert *x509.Certificate + URL string + type PeerState interface + BlockHeight func() uint64 + type PrioritySelector interface + Compare func(peer1, peer2 Peer) int + type ProcessProposalRequest struct + SignedProposal *pb.SignedProposal + type Properties map[Property]interface + type Property = string + const PropertyChaincodes + const PropertyLedgerHeight + const PropertyLeftChannel + type ProposalProcessor interface + ProcessTransactionProposal func(reqContext.Context, ProcessProposalRequest) (*TransactionProposalResponse, error) + type ProposalSender interface + CreateTransactionHeader func(opts ...TxnHeaderOpt) (TransactionHeader, error) + SendTransactionProposal func(*TransactionProposal, []ProposalProcessor) ([]*TransactionProposalResponse, error) + type Providers interface + ChannelProvider func() ChannelProvider + EndpointConfig func() EndpointConfig + InfraProvider func() InfraProvider + LocalDiscoveryProvider func() LocalDiscoveryProvider + type QueryChannelConfigPolicy struct + MaxTargets int + MinResponses int + RetryOpts retry.Opts + type Registration interface + type ResolverStrategy string + const BalancedStrategy + const MinBlockHeightStrategy + const PreferOrgStrategy + type SelectionPolicy struct + Balancer BalancerType + BlockHeightLagThreshold int + SortingStrategy SelectionSortingStrategy + type SelectionService interface + GetEndorsersForChaincode func(chaincodes []*ChaincodeCall, opts ...options.Opt) ([]Peer, error) + type SelectionSortingStrategy string + const Balanced + const BlockHeightPriority + type Sender interface + CreateTransaction func(request TransactionRequest) (*Transaction, error) + SendTransaction func(tx *Transaction) (*TransactionResponse, error) + type SignedEnvelope struct + Payload []byte + Signature []byte + type TargetFilter interface + Accept func(peer Peer) bool + type TargetSorter interface + Sort func(peers []Peer) []Peer + type TimeoutType int + const CacheSweepInterval + const ChannelConfigRefresh + const ChannelMembershipRefresh + const ConnectionIdle + const DiscoveryConnection + const DiscoveryGreylistExpiry + const DiscoveryResponse + const DiscoveryServiceRefresh + const EventReg + const EventServiceIdle + const Execute + const OrdererConnection + const OrdererResponse + const PeerConnection + const PeerResponse + const Query + const ResMgmt + const SelectionServiceRefresh + type Transaction struct + Proposal *TransactionProposal + Transaction *pb.Transaction + type TransactionHeader interface + ChannelID func() string + Creator func() []byte + Nonce func() []byte + TransactionID func() TransactionID + type TransactionID string + type TransactionProposal struct + TxnID TransactionID + type TransactionProposalResponse struct + ChaincodeStatus int32 + Endorser string + Status int32 + type TransactionRequest struct + Proposal *TransactionProposal + ProposalResponses []*TransactionProposalResponse + type TransactionResponse struct + Orderer string + type Transactor interface + type TxStatusEvent struct + BlockNumber uint64 + SourceURL string + TxID string + TxValidationCode pb.TxValidationCode + type TxnHeaderOpt func(*TxnHeaderOptions) + func WithCreator(creator []byte) TxnHeaderOpt + func WithNonce(nonce []byte) TxnHeaderOpt + type TxnHeaderOptions struct + Creator []byte + Nonce []byte + type Versions struct + Channel *common.ConfigGroup + ReadSet *common.ConfigGroup + WriteSet *common.ConfigGroup