_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c29700
train
// WithRefreshInterval sets the interval in which the // channel config cache is refreshed
{ "resource": "" }
c29701
train
// SetNumber sets the block number
{ "resource": "" }
c29702
train
// IdentityManager returns identity manager for organization
{ "resource": "" }
c29703
train
//WithCryptoSuiteConfig sets core cryptoSuite config to Context Provider
{ "resource": "" }
c29704
train
//WithEndpointConfig sets fab endpoint network config to Context Provider
{ "resource": "" }
c29705
train
//WithIdentityConfig sets msp identity config to Context Provider
{ "resource": "" }
c29706
train
// WithUserStore sets user store to Context Provider
{ "resource": "" }
c29707
train
//WithCryptoSuite sets cryptosuite parameter to Context Provider
{ "resource": "" }
c29708
train
//WithLocalDiscoveryProvider sets the local discovery provider
{ "resource": "" }
c29709
train
//WithSigningManager sets signingManager to Context Provider
{ "resource": "" }
c29710
train
//WithIdentityManagerProvider sets IdentityManagerProvider maps to context
{ "resource": "" }
c29711
train
//WithInfraProvider sets infraProvider maps to Context Provider
{ "resource": "" }
c29712
train
//WithChannelProvider sets channelProvider to Context Provider
{ "resource": "" }
c29713
train
//WithClientMetrics sets clientMetrics to Context Provider
{ "resource": "" }
c29714
train
//NewProvider creates new context client provider // Not be used by end developers, fabsdk package use only
{ "resource": "" }
c29715
train
//NewLocal returns a new local context
{ "resource": "" }
c29716
train
//NewChannel creates new channel context client // Not be used by end developers, fabsdk package use only
{ "resource": "" }
c29717
train
//WithTimeoutType sets timeout by type defined in config to request context
{ "resource": "" }
c29718
train
//WithTimeout sets timeout time duration to request context
{ "resource": "" }
c29719
train
//WithParent sets existing reqContext as a parent ReqContext
{ "resource": "" }
c29720
train
// NewRequest creates a request-scoped context.
{ "resource": "" }
c29721
train
// RequestCommManager extracts the CommManager from the request-scoped context.
{ "resource": "" }
c29722
train
// RequestClientContext extracts the Client Context from the request-scoped context.
{ "resource": "" }
c29723
train
// requestTimeoutOverrides extracts the timeout from timeout override map from the request-scoped context.
{ "resource": "" }
c29724
train
//WithTargets allows overriding of the target peers for the request
{ "resource": "" }
c29725
train
// WithTargetFilter specifies a per-request target peer-filter
{ "resource": "" }
c29726
train
// WithTargetSorter specifies a per-request target sorter
{ "resource": "" }
c29727
train
// WithRetry option to configure retries
{ "resource": "" }
c29728
train
// WithBeforeRetry specifies a function to call before a retry attempt
{ "resource": "" }
c29729
train
//WithChaincodeFilter adds a chaincode filter for figuring out additional endorsers
{ "resource": "" }
c29730
train
// New returns a new deliver event client
{ "resource": "" }
c29731
train
// New returns a Client instance. Client receives events such as block, filtered block, // chaincode, and transaction status events.
{ "resource": "" }
c29732
train
// New creates a new instance of FileKeyValueStore using provided options
{ "resource": "" }
c29733
train
// Store sets the value for the key.
{ "resource": "" }
c29734
train
// Identifier returns user identifier
{ "resource": "" }
c29735
train
// NewResolver returns a new "min block height" peer resolver provider.
{ "resource": "" }
c29736
train
// Filter returns the peers that are within a provided "lag" threshold from the highest block height of all peers.
{ "resource": "" }
c29737
train
// ShouldDisconnect checks the current peer's block height relative to the block heights of the // other peers and disconnects the peer if the configured threshold is reached. // Returns false if the block height is acceptable; true if the client should be disconnected from the peer
{ "resource": "" }
c29738
train
// NewHeader computes a TransactionID from the current user context and holds // metadata to create transaction proposals.
{ "resource": "" }
c29739
train
// signPayload signs payload
{ "resource": "" }
c29740
train
// createHeader creates a Header from a ChannelHeader.
{ "resource": "" }
c29741
train
// CreatePayload creates a slice of payload bytes from a ChannelHeader and a data slice.
{ "resource": "" }
c29742
train
// CreateSignatureHeader creates a SignatureHeader based on the nonce and creator of the transaction header.
{ "resource": "" }
c29743
train
// WithOrdererEndpoint allows an orderer to be specified for the request. // The orderer will be looked-up based on the key argument. // key argument can be a name or url
{ "resource": "" }
c29744
train
// WithOrderer allows an orderer to be specified for the request.
{ "resource": "" }
c29745
train
// WithConfigSignatures allows to provide pre defined signatures for resmgmt client's SaveChannel call
{ "resource": "" }
c29746
train
// New Errors object with the given errors. Only non-nil errors are added.
{ "resource": "" }
c29747
train
// Append error to Errors. If the first arg is not an Errors object, one will be created
{ "resource": "" }
c29748
train
// ToError converts Errors to the error interface // returns nil if no errors are present, a single error object if only one is present
{ "resource": "" }
c29749
train
// Error implements the error interface to return a string representation of Errors
{ "resource": "" }
c29750
train
// substVar searches for an instance of a variables name and replaces them with their value. // The first return value is substituted portion of the string or noMatch if no replacement occurred. // The second return value is the unconsumed portion of s.
{ "resource": "" }
c29751
train
// lookupVar returns the value of the variable. // The local variable table is consulted first, followed by environment variables. // Returns false if the variable doesn't exist.
{ "resource": "" }
c29752
train
// New creates a new Dispatcher.
{ "resource": "" }
c29753
train
// RegisterHandlers registers all of the handlers by event type
{ "resource": "" }
c29754
train
// EventCh returns the channel to which events may be posted
{ "resource": "" }
c29755
train
// Start starts dispatching events as they arrive. All events are processed in // a single Go routine in order to avoid any race conditions
{ "resource": "" }
c29756
train
// updateLastBlockNum updates the value of lastBlockNum and // returns the updated value.
{ "resource": "" }
c29757
train
// clearBlockRegistrations removes all block registrations and closes the corresponding event channels. // The listener will receive a 'closed' event to indicate that the channel has been closed.
{ "resource": "" }
c29758
train
// clearFilteredBlockRegistrations removes all filtered block registrations and closes the corresponding event channels. // The listener will receive a 'closed' event to indicate that the channel has been closed.
{ "resource": "" }
c29759
train
// clearTxRegistrations removes all transaction registrations and closes the corresponding event channels. // The listener will receive a 'closed' event to indicate that the channel has been closed.
{ "resource": "" }
c29760
train
// clearChaincodeRegistrations removes all chaincode registrations and closes the corresponding event channels. // The listener will receive a 'closed' event to indicate that the channel has been closed.
{ "resource": "" }
c29761
train
// HandleStopEvent stops the dispatcher and unregisters all event registration. // The Dispatcher is no longer usable.
{ "resource": "" }
c29762
train
// HandleTransferEvent transfers all event registrations into a EventSnapshot.
{ "resource": "" }
c29763
train
// HandleStopAndTransferEvent stops the dispatcher and transfers all event registrations // into a EventSnapshot. // The Dispatcher is no longer usable.
{ "resource": "" }
c29764
train
// HandleBlock handles a block event
{ "resource": "" }
c29765
train
// HandleFilteredBlock handles a filtered block event
{ "resource": "" }
c29766
train
// RegisterHandler registers an event handler
{ "resource": "" }
c29767
train
// NewCertPool new CertPool implementation
{ "resource": "" }
c29768
train
//filterCerts remove certs from list if they already exist in pool or duplicate
{ "resource": "" }
c29769
train
// New returns a new Discover client
{ "resource": "" }
c29770
train
// NewUser creates a User instance
{ "resource": "" }
c29771
train
// GetSigningIdentity returns a signing identity for the given id
{ "resource": "" }
c29772
train
// GetUser returns a user for the given user name
{ "resource": "" }
c29773
train
// NewMockChannelConfig mockcore channel config implementation
{ "resource": "" }
c29774
train
// Query mockcore query for channel configuration
{ "resource": "" }
c29775
train
//PickRandomNPeerConfigs picks N random unique peer configs from given channel peer list
{ "resource": "" }
c29776
train
// ProcessTransactionProposal sends the transaction proposal to a peer and returns the response.
{ "resource": "" }
c29777
train
//extractChaincodeErrorFromResponse extracts chaincode error from proposal response
{ "resource": "" }
c29778
train
// getChaincodeResponseStatus gets the actual response status from response.Payload.extension.Response.status, as fabric always returns actual 200
{ "resource": "" }
c29779
train
// CreateChaincodeInstallProposal creates an install chaincode proposal.
{ "resource": "" }
c29780
train
// New returns a new "balanced" peer resolver.
{ "resource": "" }
c29781
train
// Resolve returns a peer usig the configured load balancer.
{ "resource": "" }
c29782
train
// NewLocalProvider returns discovery provider
{ "resource": "" }
c29783
train
// Initialize initializes the DiscoveryProvider
{ "resource": "" }
c29784
train
// CreateLocalDiscoveryService return a local discovery service
{ "resource": "" }
c29785
train
// GetBalancer returns the configured load balancer
{ "resource": "" }
c29786
train
// New returns a new "prefer org" resolver.
{ "resource": "" }
c29787
train
// Resolve uses the MinBlockHeight resolver to choose peers but will prefer peers in the given org.
{ "resource": "" }
c29788
train
// ShouldDisconnect determines whether connected peer not in our org should be disconnected // and reconnected to a peer in our org.
{ "resource": "" }
c29789
train
// NewRoundRobinPeerGroupResolver returns a PeerGroupResolver that chooses peers in a round-robin fashion
{ "resource": "" }
c29790
train
// NewRandomPeerGroupResolver returns a PeerGroupResolver that chooses peers in a round-robin fashion
{ "resource": "" }
c29791
train
// NewPeerGroupResolver returns a new PeerGroupResolver
{ "resource": "" }
c29792
train
// CompileSignaturePolicy compiles the given signature policy and returns a GroupRetriever
{ "resource": "" }
c29793
train
// Match verifies and matches transaction proposal responses
{ "resource": "" }
c29794
train
// WithBlockEvents indicates that block events are to be received. // Note that the caller must have sufficient privileges for this option.
{ "resource": "" }
c29795
train
// WithReconnect indicates whether the client should automatically attempt to reconnect // to the server after a connection has been lost
{ "resource": "" }
c29796
train
// WithMaxConnectAttempts sets the maximum number of times that the client will attempt // to connect to the server. If set to 0 then the client will try until it is stopped.
{ "resource": "" }
c29797
train
// WithMaxReconnectAttempts sets the maximum number of times that the client will attempt // to reconnect to the server after a connection has been lost. If set to 0 then the // client will try until it is stopped.
{ "resource": "" }
c29798
train
// WithReconnectInitialDelay sets the initial delay before attempting to reconnect.
{ "resource": "" }
c29799
train
// WithTimeBetweenConnectAttempts sets the time between connection attempts.
{ "resource": "" }