_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c30000
train
// wrapStreamStatusRPC returns the last response and err and blocks until the chan is closed.
{ "resource": "" }
c30001
train
// NewReceived returns a new Received struct
{ "resource": "" }
c30002
train
// NewLedger constructs a Ledger client for the current context and named channel.
{ "resource": "" }
c30003
train
// QueryBlockByHash queries the ledger for Block by block hash. // This query will be made to specified targets. // Returns the block.
{ "resource": "" }
c30004
train
// QueryBlockByTxID returns a block which contains a transaction // This query will be made to specified targets. // Returns the block.
{ "resource": "" }
c30005
train
// QueryTransaction queries the ledger for Transaction by number. // This query will be made to specified targets. // Returns the ProcessedTransaction information containing the transaction.
{ "resource": "" }
c30006
train
// QueryInstantiatedChaincodes queries the instantiated chaincodes on this channel. // This query will be made to specified targets.
{ "resource": "" }
c30007
train
// QueryCollectionsConfig queries the collections config for a chaincode on this channel.
{ "resource": "" }
c30008
train
// QueryConfigBlock returns the current configuration block for the specified channel. If the // peer doesn't belong to the channel, return error
{ "resource": "" }
c30009
train
// WithBlockNum indicates the block number from which events are to be received. // Only deliverclient supports this
{ "resource": "" }
c30010
train
// WithSeekType indicates the type of seek desired - newest, oldest or from given block // Only deliverclient supports this
{ "resource": "" }
c30011
train
// NewMockStatefulPeer returns a new MockPeer with the given options
{ "resource": "" }
c30012
train
// BlockHeight returns the block height
{ "resource": "" }
c30013
train
// SetBlockHeight sets the block height
{ "resource": "" }
c30014
train
// New returns a ledger client instance. A ledger client instance provides a handler to query various info on specified channel. // An application that requires interaction with multiple channels should create a separate // instance of the ledger client for each channel. Ledger client supports specific queries only.
{ "resource": "" }
c30015
train
//prepareRequestOpts Reads Opts from Option array
{ "resource": "" }
c30016
train
// newCtxtCacheKey returns a new cacheKey
{ "resource": "" }
c30017
train
// newEventCacheKey returns a new eventCacheKey
{ "resource": "" }
c30018
train
// CAConfig not implemented
{ "resource": "" }
c30019
train
//Timeout not implemented
{ "resource": "" }
c30020
train
// PeersConfig Retrieves the fabric peers from the config file provided
{ "resource": "" }
c30021
train
// PeerConfig Retrieves a specific peer from the configuration by org and name
{ "resource": "" }
c30022
train
// OrderersConfig returns a list of defined orderers
{ "resource": "" }
c30023
train
// OrdererConfig not implemented
{ "resource": "" }
c30024
train
// SetCustomChannelConfig sets the config for the given channel
{ "resource": "" }
c30025
train
// Lookup gets the Value from config file by Key
{ "resource": "" }
c30026
train
// Broadcast mock broadcast
{ "resource": "" }
c30027
train
// Deliver mock deliver
{ "resource": "" }
c30028
train
// Start the mock broadcast server
{ "resource": "" }
c30029
train
// New returns a peer sorter that uses block height and the provided balancer to sort the peers. // This sorter uses a block-height-lag-threshold property which is the number of blocks from // the highest block of a group of peers that a peer can lag behind and still be considered to be // up-to-date. These peers are s...
{ "resource": "" }
c30030
train
// Sort sorts the given peers according to block height and lag threshold.
{ "resource": "" }
c30031
train
// CreateLocalDiscoveryService return local discovery service
{ "resource": "" }
c30032
train
// GetPeers is used to discover eligible peers for chaincode
{ "resource": "" }
c30033
train
// NewRefCache a cache of membership references that refreshed with the // given interval
{ "resource": "" }
c30034
train
// initMetrics will initialize the Go SDK's metric's system instance to allow capturing metrics data by the SDK clients.
{ "resource": "" }
c30035
train
// NewCachingConnector creates a GRPC connection cache. The cache is governed by // sweepTime and idleTime.
{ "resource": "" }
c30036
train
// Close cleans up cached connections.
{ "resource": "" }
c30037
train
// DialContext is a wrapper for grpc.DialContext where connections are cached.
{ "resource": "" }
c30038
train
// ReleaseConn notifies the cache that the connection is no longer in use.
{ "resource": "" }
c30039
train
// NewSelectAndEndorseHandler returns a new SelectAndEndorseHandler
{ "resource": "" }
c30040
train
// Handle selects endorsers and sends proposals to the endorsers
{ "resource": "" }
c30041
train
//NewChainedCCFilter returns a chaincode filter that chains //multiple filters together. False is returned if at least one //of the filters in the chain returns false.
{ "resource": "" }
c30042
train
// getCC returns the ChaincodeCall from the invocation chain that matches the chaincode ID or // returns nil if the ChaincodeCall is not found.
{ "resource": "" }
c30043
train
// merge merges the collections from c1 and c2 and returns the resulting ChaincodeCall. // true is returned if a merge was necessary; false is returned if the two ChaincodeCalls were the same.
{ "resource": "" }
c30044
train
// prioritizePeers is a priority selector that gives priority to the peers that are in the given set
{ "resource": "" }
c30045
train
// New creates a new reference
{ "resource": "" }
c30046
train
// NewWithData creates a new reference where data is passed from the Get // function to the initializer. This is useful for refreshing the reference // with dynamic data.
{ "resource": "" }
c30047
train
// Get returns the value, or an error if the initialiser returned an error.
{ "resource": "" }
c30048
train
// MustGet returns the value. If an error is returned // during initialization of the value then this function // will panic.
{ "resource": "" }
c30049
train
// GetLevel returns the log level for the given module.
{ "resource": "" }
c30050
train
// SetLevel sets the log level for the given module.
{ "resource": "" }
c30051
train
// IsEnabledFor will return true if logging is enabled for the given module.
{ "resource": "" }
c30052
train
// NewRef returns a new channel config reference
{ "resource": "" }
c30053
train
// New returns a new event client
{ "resource": "" }
c30054
train
// SetAfterConnectHandler registers a handler that is called // after the client connects to the event server. This allows for // custom code to be executed for a particular // event client implementation.
{ "resource": "" }
c30055
train
// SetBeforeReconnectHandler registers a handler that will be called // before retrying to reconnect to the event server. This allows for // custom code to be executed for a particular event client implementation.
{ "resource": "" }
c30056
train
// Connect connects to the peer and registers for events on a particular channel.
{ "resource": "" }
c30057
train
// CloseIfIdle closes the connection to the event server only if there are no outstanding // registrations. // Returns true if the client was closed. In this case the client may no longer be used. // A return value of false indicates that the client could not be closed since // there was at least one registration.
{ "resource": "" }
c30058
train
// TransferRegistrations transfers all registrations into an EventSnapshot. // The registrations are not closed and may susequently be transferred to a // new event client. // - close - if true then the client will also be closed
{ "resource": "" }
c30059
train
// registerConnectionEvent registers a connection event. The returned // ConnectionEvent channel will be called whenever the client clients or disconnects // from the event server
{ "resource": "" }
c30060
train
// setConnectionState sets the connection state only if the given currentState // matches the actual state. True is returned if the connection state was successfully set.
{ "resource": "" }
c30061
train
//Handle for endorsing transactions
{ "resource": "" }
c30062
train
//Handle selects proposal processors
{ "resource": "" }
c30063
train
//Handle for Filtering proposal response
{ "resource": "" }
c30064
train
//Handle handles commit tx
{ "resource": "" }
c30065
train
//NewEndorsementHandlerWithOpts returns a handler that endorses a transaction proposal
{ "resource": "" }
c30066
train
// Choose chooses from the list of peers in round-robin fashion
{ "resource": "" }
c30067
train
// New Constructor for a signing manager. // @param {BCCSP} cryptoProvider - crypto provider // @param {Config} config - configuration provider // @returns {SigningManager} new signing manager
{ "resource": "" }
c30068
train
// NewBox returns a Box that can be used to // retrieve files from either disk or the embedded // binary.
{ "resource": "" }
c30069
train
// String - json returned
{ "resource": "" }
c30070
train
// NewBox stub from the name and the path provided
{ "resource": "" }
c30071
train
// Pack the roots given + PWD
{ "resource": "" }
c30072
train
// Run the builder.
{ "resource": "" }
c30073
train
// New Builder with a given context and path
{ "resource": "" }
c30074
train
// String returns the contents of the reader
{ "resource": "" }
c30075
train
// NewFile takes the name of the file you want to // write to and a reader to reader from
{ "resource": "" }
c30076
train
// Resolve attempts to find the file in the specific box // with the specified key
{ "resource": "" }
c30077
train
// Run the parser and run any boxes found
{ "resource": "" }
c30078
train
// PackBytes packs bytes for a file into a box.
{ "resource": "" }
c30079
train
// PackBytesGzip packets the gzipped compressed bytes into a box.
{ "resource": "" }
c30080
train
// PackJSONBytes packs JSON encoded bytes for a file into a box.
{ "resource": "" }
c30081
train
// UnpackBytes unpacks bytes for specific box.
{ "resource": "" }
c30082
train
// DecodeString returns the bytes represented by the hexadecimal string s. // // DecodeString expects that src contains only hexadecimal // characters and that src has even length. // If the input is malformed, DecodeString returns // the bytes decoded before the error.
{ "resource": "" }
c30083
train
// Dump returns a string that contains a hex dump of the given data. The format // of the hex dump matches the output of `hexdump -C` on the command line.
{ "resource": "" }
c30084
train
// Load the key from the map. // Returns resolver.Resolver or bool. // A false return indicates either the key was not found // or the value is not of type resolver.Resolver
{ "resource": "" }
c30085
train
// Range over the resolver.Resolver values in the map
{ "resource": "" }
c30086
train
// Store a resolver.Resolver in the map
{ "resource": "" }
c30087
train
// PackBytes packs bytes for a file into a box. // Deprecated
{ "resource": "" }
c30088
train
// PackBytesGzip packets the gzipped compressed bytes into a box. // Deprecated
{ "resource": "" }
c30089
train
// String is deprecated. Use FindString instead
{ "resource": "" }
c30090
train
// MustString is deprecated. Use FindString instead
{ "resource": "" }
c30091
train
// Delete the key from the map
{ "resource": "" }
c30092
train
// Load the key from the map. // Returns bool or bool. // A false return indicates either the key was not found // or the value is not of type bool
{ "resource": "" }
c30093
train
// Store a bool in the map
{ "resource": "" }
c30094
train
// Run all compatible checks
{ "resource": "" }
c30095
train
// New returns a new Box with the name of the box // and the path of the box.
{ "resource": "" }
c30096
train
// SetResolver allows for the use of a custom resolver for // the specified file
{ "resource": "" }
c30097
train
// AddString converts t to a byteslice and delegates to AddBytes to add to b.data
{ "resource": "" }
c30098
train
// AddBytes sets t in b.data by the given path
{ "resource": "" }
c30099
train
// FindString returns either the string of the requested // file or an error if it can not be found.
{ "resource": "" }