_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c29500 | train | // NewMockPeer creates basic mock peer | {
"resource": ""
} | ||
c29501 | train | // ProcessTransactionProposal does not send anything anywhere but returns an empty mock ProposalResponse | {
"resource": ""
} | ||
c29502 | train | // NewRwSet returns a new read-write set for the given chaincode | {
"resource": ""
} | ||
c29503 | train | // New create a transaction with proposal response, following the endorsement policy. | {
"resource": ""
} | ||
c29504 | train | // BroadcastPayload will send the given payload to some orderer, picking random endpoints
// until all are exhausted | {
"resource": ""
} | ||
c29505 | train | // broadcastEnvelope will send the given envelope to some orderer, picking random endpoints
// until all are exhausted | {
"resource": ""
} | ||
c29506 | train | // SendPayload sends the given payload to each orderer and returns a block response | {
"resource": ""
} | ||
c29507 | train | // sendEnvelope sends the given envelope to each orderer and returns a block response | {
"resource": ""
} | ||
c29508 | train | // NewGraduatingExpirationProvider returns an expiration provider
// that has an initial expiration and then expires in graduated increments
// with a maximum expiration time. | {
"resource": ""
} | ||
c29509 | train | // CreateUserStore creates a UserStore using the SDK's default implementation | {
"resource": ""
} | ||
c29510 | train | // CreateIdentityManagerProvider returns a new default implementation of MSP provider | {
"resource": ""
} | ||
c29511 | train | // addDefaultTargetFilter adds default target filter if target filter is not specified | {
"resource": ""
} | ||
c29512 | train | // addDefaultTimeout adds default timeout if timeout is not specified | {
"resource": ""
} | ||
c29513 | train | //createReqContext creates req context for invoke handler | {
"resource": ""
} | ||
c29514 | train | //prepareHandlerContexts prepares context objects for handlers | {
"resource": ""
} | ||
c29515 | train | //prepareOptsFromOptions Reads apitxn.Opts from Option array | {
"resource": ""
} | ||
c29516 | train | // New Returns a new Peer instance | {
"resource": ""
} | ||
c29517 | train | // WithURL is a functional option for the peer.New constructor that configures the peer's URL | {
"resource": ""
} | ||
c29518 | train | // WithTLSCert is a functional option for the peer.New constructor that configures the peer's TLS certificate | {
"resource": ""
} | ||
c29519 | train | // WithServerName is a functional option for the peer.New constructor that configures the peer's server name | {
"resource": ""
} | ||
c29520 | train | // WithMSPID is a functional option for the peer.New constructor that configures the peer's msp ID | {
"resource": ""
} | ||
c29521 | train | // FromPeerConfig is a functional option for the peer.New constructor that configures a new peer
// from a apiconfig.NetworkPeer struct | {
"resource": ""
} | ||
c29522 | train | // WithPeerProcessor is a functional option for the peer.New constructor that configures the peer's proposal processor | {
"resource": ""
} | ||
c29523 | train | // ProcessTransactionProposal sends the created proposal to peer for endorsement. | {
"resource": ""
} | ||
c29524 | train | // PeersToTxnProcessors converts a slice of Peers to a slice of TxnProposalProcessors | {
"resource": ""
} | ||
c29525 | train | // Close closes all event registrations | {
"resource": ""
} | ||
c29526 | train | // Enroll handles enrollment. | {
"resource": ""
} | ||
c29527 | train | // Reenroll handles re-enrollment | {
"resource": ""
} | ||
c29528 | train | // AddAffiliation add new affiliation | {
"resource": ""
} | ||
c29529 | train | // WithLoadBalancePolicy sets the load-balance policy | {
"resource": ""
} | ||
c29530 | train | // WithCacheTimeout sets the expiration timeout of the cache | {
"resource": ""
} | ||
c29531 | train | // NewService creates a new dynamic selection service | {
"resource": ""
} | ||
c29532 | train | // NewClientMetrics builds a new instance of ClientMetrics | {
"resource": ""
} | ||
c29533 | train | // NewService creates a static discovery service | {
"resource": ""
} | ||
c29534 | train | // WithDefaultTargetFilter option to configure new | {
"resource": ""
} | ||
c29535 | train | // WithTargetEndpoints allows overriding of the target peers per request.
// Targets are specified by name or URL, and the SDK will create the underlying peer objects. | {
"resource": ""
} | ||
c29536 | train | // WithTargetFilter specifies a per-request target peer-filter. | {
"resource": ""
} | ||
c29537 | train | //WithMaxTargets specifies maximum number of targets to select per request.
// Default value for maximum number of targets is 1. | {
"resource": ""
} | ||
c29538 | train | //WithTimeout encapsulates key value pairs of timeout type, timeout duration to Options
//for QueryInfo, QueryBlock, QueryBlockByHash, QueryBlockByTxID, QueryTransaction, QueryConfig functions | {
"resource": ""
} | ||
c29539 | train | //WithParentContext encapsulates grpc parent context | {
"resource": ""
} | ||
c29540 | train | //Lookup returns or unmarshals value for given key | {
"resource": ""
} | ||
c29541 | train | // WithPeers adds a set of mock peers to the MockDiscoveryServer | {
"resource": ""
} | ||
c29542 | train | // WithLocalPeers adds a set of mock peers to the MockDiscoveryServer | {
"resource": ""
} | ||
c29543 | train | // NewServer returns a new MockDiscoveryServer | {
"resource": ""
} | ||
c29544 | train | // Discover Processes the given Discovery request and returns a mock response | {
"resource": ""
} | ||
c29545 | train | // block retrieves the block at the given position | {
"resource": ""
} | ||
c29546 | train | // newNewestSeekPosition returns a SeekPosition that requests the newest block | {
"resource": ""
} | ||
c29547 | train | // newSpecificSeekPosition returns a SeekPosition that requests the block at the given index | {
"resource": ""
} | ||
c29548 | train | // New creates a MSP context provider | {
"resource": ""
} | ||
c29549 | train | // IdentityManager returns the organization's identity manager | {
"resource": ""
} | ||
c29550 | train | // Verify the given signature | {
"resource": ""
} | ||
c29551 | train | // ContainsMSP mocks membership.ContainsMSP | {
"resource": ""
} | ||
c29552 | train | // WithRefreshInterval sets the interval in which the
// peer cache is refreshed | {
"resource": ""
} | ||
c29553 | train | // WithResponseTimeout sets the Discover service response timeout | {
"resource": ""
} | ||
c29554 | train | // WithErrorHandler sets the error handler | {
"resource": ""
} | ||
c29555 | train | // WithPrivateKey can be passed as an option when creating a new SigningIdentity.
// It cannot be used without the WithCert option | {
"resource": ""
} | ||
c29556 | train | // WithCert can be passed as an option when creating a new SigningIdentity.
// When used alone, SDK will lookup the corresponding private key. | {
"resource": ""
} | ||
c29557 | train | // NewCAClient creates a new CA CAClient instance | {
"resource": ""
} | ||
c29558 | train | // Reenroll an enrolled user in order to obtain a new signed X509 certificate | {
"resource": ""
} | ||
c29559 | train | // GetAllAffiliations returns all affiliations that the caller is authorized to see | {
"resource": ""
} | ||
c29560 | train | // AddAffiliation adds a new affiliation to the server | {
"resource": ""
} | ||
c29561 | train | // New returns a new Deliver Server connection | {
"resource": ""
} | ||
c29562 | train | // Send sends a seek request to the deliver server | {
"resource": ""
} | ||
c29563 | train | // Receive receives events from the deliver server | {
"resource": ""
} | ||
c29564 | train | // NewEvent returns a deliver event | {
"resource": ""
} | ||
c29565 | train | // TLSConfig returns the appropriate config for TLS including the root CAs,
// certs for mutual TLS, and server host override. Works with certs loaded either from a path or embedded pem. | {
"resource": ""
} | ||
c29566 | train | //computeHash computes hash for given bytes using underlying cryptosuite default | {
"resource": ""
} | ||
c29567 | train | // GetEventService returns the EventService. | {
"resource": ""
} | ||
c29568 | train | // New creates a new dispatcher | {
"resource": ""
} | ||
c29569 | train | // HandleStopEvent handles a Stop event by clearing all registrations
// and stopping the listener | {
"resource": ""
} | ||
c29570 | train | // HandleConnectEvent initiates a connection to the event server | {
"resource": ""
} | ||
c29571 | train | // HandleDisconnectEvent disconnects from the event server | {
"resource": ""
} | ||
c29572 | train | // HandleRegisterConnectionEvent registers a connection listener | {
"resource": ""
} | ||
c29573 | train | // HandleConnectedEvent sends a 'connected' event to any registered listener | {
"resource": ""
} | ||
c29574 | train | // HandleDisconnectedEvent sends a 'disconnected' event to any registered listener | {
"resource": ""
} | ||
c29575 | train | // disconnected checks if the currently connected peer should be disconnected
// Returns true if the client has been disconnected; false otherwise | {
"resource": ""
} | ||
c29576 | train | // ConnectedPeer returns the connected peer | {
"resource": ""
} | ||
c29577 | train | // Send sends a Discovery request | {
"resource": ""
} | ||
c29578 | train | // SetResponses sets the responses that the mock client should return from the Send function | {
"resource": ""
} | ||
c29579 | train | // Endorsers returns the response for an endorser query | {
"resource": ""
} | ||
c29580 | train | // Build builds a mock discovery response | {
"resource": ""
} | ||
c29581 | train | // NewConnection returns a new MockConnection using the given options | {
"resource": ""
} | ||
c29582 | train | // Send mockcore sending seek info to the deliver server | {
"resource": ""
} | ||
c29583 | train | // Initialize pkcs11 context | {
"resource": ""
} | ||
c29584 | train | // Initialize Session to slot | {
"resource": ""
} | ||
c29585 | train | // This will perform a login | {
"resource": ""
} | ||
c29586 | train | // Perform all actions needed to close Context | {
"resource": ""
} | ||
c29587 | train | // This should return a list of object handlers and true if more than max | {
"resource": ""
} | ||
c29588 | train | // List content of slot | {
"resource": ""
} | ||
c29589 | train | // Accept returns true if this peer is to be included in the target list | {
"resource": ""
} | ||
c29590 | train | // New returns a resource management client instance. | {
"resource": ""
} | ||
c29591 | train | // helper method for calculating default targets | {
"resource": ""
} | ||
c29592 | train | // isChaincodeInstalled verify if chaincode is installed on peer | {
"resource": ""
} | ||
c29593 | train | // sendCCProposal sends proposal for type Instantiate, Upgrade | {
"resource": ""
} | ||
c29594 | train | // prepareRequestOpts prepares request options | {
"resource": ""
} | ||
c29595 | train | //resolveTimeouts sets default for timeouts from config if not provided through opts | {
"resource": ""
} | ||
c29596 | train | // New returns a new event service initialized with the given Dispatcher | {
"resource": ""
} | ||
c29597 | train | // Stop stops the event service | {
"resource": ""
} | ||
c29598 | train | // StopAndTransfer stops the event service and transfers all event registrations into a snapshot. | {
"resource": ""
} | ||
c29599 | train | // Submit submits an event for processing | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.