_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c29600
train
// RegisterFilteredBlockEvent registers for filtered block events. If the client is not authorized to receive // filtered block events then an error is returned.
{ "resource": "" }
c29601
train
// RegisterChaincodeEvent registers for chaincode events. If the client is not authorized to receive // chaincode events then an error is returned. // - ccID is the chaincode ID for which events are to be received // - eventFilter is the chaincode event name for which events are to be received
{ "resource": "" }
c29602
train
// RegisterTxStatusEvent registers for transaction status events. If the client is not authorized to receive // transaction status events then an error is returned. // - txID is the transaction ID for which events are to be received
{ "resource": "" }
c29603
train
// Unregister unregisters the given registration. // - reg is the registration handle that was returned from one of the RegisterXXX functions
{ "resource": "" }
c29604
train
// NewBlock returns a new block
{ "resource": "" }
c29605
train
// NewFilteredBlock returns a new filtered block
{ "resource": "" }
c29606
train
// New member identity
{ "resource": "" }
c29607
train
//addCertsToConfig adds cert bytes to config TLSCACertPool
{ "resource": "" }
c29608
train
// DialContext creates a connection
{ "resource": "" }
c29609
train
// ReleaseConn closes the connection
{ "resource": "" }
c29610
train
// NewCCPackage creates new go lang chaincode package
{ "resource": "" }
c29611
train
// defaultGoPath returns the system's default GOPATH. If the system // has multiple GOPATHs then the first is used.
{ "resource": "" }
c29612
train
// NewMockProducer returns a new MockProducer
{ "resource": "" }
c29613
train
// Close closes the event producer
{ "resource": "" }
c29614
train
// Register registers an event channel
{ "resource": "" }
c29615
train
// Unregister unregisters an event channel
{ "resource": "" }
c29616
train
// New creates a ChannelProvider based on a context
{ "resource": "" }
c29617
train
// ChannelService creates a ChannelService for an identity
{ "resource": "" }
c29618
train
// Config returns the Config for the named channel
{ "resource": "" }
c29619
train
// EventService returns the EventService.
{ "resource": "" }
c29620
train
// Membership returns and caches a channel member identifier // A membership reference is returned that refreshes with the configured interval
{ "resource": "" }
c29621
train
// ChannelConfig returns the channel config for this channel
{ "resource": "" }
c29622
train
// Transactor returns the transactor
{ "resource": "" }
c29623
train
// Discovery returns a DiscoveryService for the given channel
{ "resource": "" }
c29624
train
// Selection returns a SelectionService for the given channel
{ "resource": "" }
c29625
train
// GetPrivateKeyFromCert will return private key represented by SKI in cert's public key
{ "resource": "" }
c29626
train
// GetPublicKeyFromCert will return public key the from cert
{ "resource": "" }
c29627
train
// NewMockDiscoveryProvider returns mock discovery provider
{ "resource": "" }
c29628
train
// CreateLocalDiscoveryService return discovery service for specific channel
{ "resource": "" }
c29629
train
// NewMockDiscoveryService returns mock discovery service
{ "resource": "" }
c29630
train
// New creates a new lazy cache. // - name is the name of the cache and is only used for debugging purpose // - initializer is invoked the first time an entry is being cached // - opts are options for the cache. If any lazyref option is passed then a lazy reference // is created for each of the cache entries to hold ...
{ "resource": "" }
c29631
train
// Get returns the value for the given key. If the // key doesn't exist then the initializer is invoked // to create the value, and the key is inserted. If the // initializer returns an error then the key is removed // from the cache.
{ "resource": "" }
c29632
train
// MustGet returns the value for the given key. If the key doesn't // exist then the initializer is invoked to create the value and the // key is inserted. If an error is returned during initialization of the // value then this function will panic.
{ "resource": "" }
c29633
train
// useLazyRef returns true if the cache should used lazy references to hold the actual value
{ "resource": "" }
c29634
train
// New retry Handler with the given opts
{ "resource": "" }
c29635
train
// WithAttempts new retry Handler with given attempts. Other opts are set to default.
{ "resource": "" }
c29636
train
// backoffPeriod calculates the backoff duration based on the provided opts
{ "resource": "" }
c29637
train
// isRetryable determines if the given status is configured to be retryable
{ "resource": "" }
c29638
train
// NewConnection creates a new connection
{ "resource": "" }
c29639
train
// NewMockLocalContext creates new mock local context
{ "resource": "" }
c29640
train
// Choose randomly chooses a peer from the list of peers
{ "resource": "" }
c29641
train
// WithIdleExpiration sets the idle-time expiration for the reference. // The reference is expired after not being accessed for the given duration.
{ "resource": "" }
c29642
train
// WithAbsoluteExpiration sets the expiration time for the reference. // It will expire after this time period, regardless of whether or not // it has been recently accessed.
{ "resource": "" }
c29643
train
// WithExpirationProvider sets the expiration provider, which determines // the expiration time of the reference
{ "resource": "" }
c29644
train
// WithFinalizer sets a finalizer function that is called when the // reference is closed or if it expires
{ "resource": "" }
c29645
train
// WithRefreshInterval specifies that the reference should be proactively refreshed. // Argument, initialInit, if greater than or equal to 0, indicates that the reference // should be initialized after this duration. If less than 0, the reference will be // initialized on first access. // Argument, refreshPeriod, is th...
{ "resource": "" }
c29646
train
// SearchPeerConfigFromURL searches for the peer configuration based on a URL.
{ "resource": "" }
c29647
train
// MSPID returns the MSP ID for the requested organization
{ "resource": "" }
c29648
train
// NewLocalProvider creates a new local dynamic discovery provider
{ "resource": "" }
c29649
train
// CreateLocalDiscoveryService returns a local discovery service
{ "resource": "" }
c29650
train
// FromError returns a Status representing err if available, // otherwise it returns nil, false.
{ "resource": "" }
c29651
train
// New returns a Status with the given parameters
{ "resource": "" }
c29652
train
// NewFromProposalResponse creates a status created from the given ProposalResponse
{ "resource": "" }
c29653
train
// NewFromGRPCStatus new Status from gRPC status response
{ "resource": "" }
c29654
train
// NewFromExtractedChaincodeError returns Status when a chaincode error occurs
{ "resource": "" }
c29655
train
// New creates a InfraProvider enabling access to core Fabric objects and functionality.
{ "resource": "" }
c29656
train
// NewGroupOfGroups returns a new group of groups
{ "resource": "" }
c29657
train
// NewMSPPeerGroup returns a new MSP PeerGroup
{ "resource": "" }
c29658
train
// asGroupsOrPanic converts the given array of Item into an array of Group. // Each of the given items in the array must also be a Group or else a panic results.
{ "resource": "" }
c29659
train
// KeyGen is a wrapper of BCCSP.KeyGen
{ "resource": "" }
c29660
train
// KeyImport is a wrapper of BCCSP.KeyImport
{ "resource": "" }
c29661
train
// GetKey is a wrapper of BCCSP.GetKey
{ "resource": "" }
c29662
train
// Hash is a wrapper of BCCSP.Hash
{ "resource": "" }
c29663
train
// GetHash is a wrapper of BCCSP.GetHash
{ "resource": "" }
c29664
train
// Sign is a wrapper of BCCSP.Sign
{ "resource": "" }
c29665
train
// Verify is a wrapper of BCCSP.Verify
{ "resource": "" }
c29666
train
// NewBlockEvent returns a new mock block event initialized with the given block
{ "resource": "" }
c29667
train
// NewFilteredBlockEvent returns a new mock filtered block event initialized with the given filtered block
{ "resource": "" }
c29668
train
// WithTargetFilter applies the target filter to the discovery provider
{ "resource": "" }
c29669
train
// NewEndpointDiscoveryWrapper returns a new event endpoint discovery service // that wraps a given target discovery service and adds endpoint data to each // of the discovered peers.
{ "resource": "" }
c29670
train
// GetPeers returns the discovered peers
{ "resource": "" }
c29671
train
// NewMockCAClient Constructor for a CA client.
{ "resource": "" }
c29672
train
// Register registers a user with a Fabric network
{ "resource": "" }
c29673
train
// Revoke revokes a user
{ "resource": "" }
c29674
train
// CreateIdentity creates an identity
{ "resource": "" }
c29675
train
//GetIdentity returns an identity by id
{ "resource": "" }
c29676
train
// GetAllIdentities returns all identities that the caller is authorized to see
{ "resource": "" }
c29677
train
// RemoveIdentity removes identity
{ "resource": "" }
c29678
train
// GetAllAffiliations get all affiliations
{ "resource": "" }
c29679
train
// GetAffiliation get an affiliation
{ "resource": "" }
c29680
train
// ModifyAffiliation update an affiliation
{ "resource": "" }
c29681
train
// RemoveAffiliation remove an affiliation
{ "resource": "" }
c29682
train
// KeyGen mock key gen
{ "resource": "" }
c29683
train
// KeyImport mock key import
{ "resource": "" }
c29684
train
// GetKey mock get key
{ "resource": "" }
c29685
train
// Hash mock hash
{ "resource": "" }
c29686
train
// GetHash mock get hash
{ "resource": "" }
c29687
train
// Sign mock signing
{ "resource": "" }
c29688
train
//Verify mock verify implementation
{ "resource": "" }
c29689
train
// CAConfig returns the CA configuration.
{ "resource": "" }
c29690
train
//CAClientCert read configuration for the fabric CA client cert bytes for given org
{ "resource": "" }
c29691
train
//CAClientKey read configuration for the fabric CA client key bytes for given org
{ "resource": "" }
c29692
train
// CAServerCerts Read configuration option for the server certificates // will send a list of cert bytes for given org
{ "resource": "" }
c29693
train
//loadIdentityConfigEntities loads config entities and dictionaries for searches
{ "resource": "" }
c29694
train
//loadCATLSConfig pre-loads all TLSConfig bytes in certificate authorities
{ "resource": "" }
c29695
train
// NewEventClientRef returns a new EventClientRef
{ "resource": "" }
c29696
train
// Close immediately closes the connection.
{ "resource": "" }
c29697
train
// Unregister removes the given registration and closes the event channel.
{ "resource": "" }
c29698
train
// NewEndpointFilter creates a new endpoint filter that is based on configuration. // If channel peer is not configured it will be selected by default.
{ "resource": "" }
c29699
train
// Accept returns false if this peer is to be excluded from the target list
{ "resource": "" }