_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c29900 | train | // SetConnectionProvider is only used in unit tests | {
"resource": ""
} | ||
c29901 | train | // NewMockLedger creates a new MockLedger | {
"resource": ""
} | ||
c29902 | train | // Register registers an event consumer | {
"resource": ""
} | ||
c29903 | train | // Unregister unregisters the given consumer | {
"resource": ""
} | ||
c29904 | train | // NewBlock stores a new block on the ledger | {
"resource": ""
} | ||
c29905 | train | // NewFilteredBlock stores a new filtered block on the ledger | {
"resource": ""
} | ||
c29906 | train | // Store stores the given block to the ledger | {
"resource": ""
} | ||
c29907 | train | // SendFrom sends block events to all registered consumers from the
// given block number | {
"resource": ""
} | ||
c29908 | train | // newLocalService creates a Local Discovery Service to query the list of member peers in the local MSP. | {
"resource": ""
} | ||
c29909 | train | // Initialize initializes the service with local context | {
"resource": ""
} | ||
c29910 | train | // Even though the local peer query should only return peers in the local
// MSP, this function double checks and logs a warning if this is not the case. | {
"resource": ""
} | ||
c29911 | train | // NewTransactor returns a Transactor for the current context and channel config. | {
"resource": ""
} | ||
c29912 | train | //deprecated
//orderersFromChannel returns list of fab.Orderer by channel id
//will return empty list when orderers are not found in endpoint config | {
"resource": ""
} | ||
c29913 | train | // NewParams creates new parameters based on the provided options | {
"resource": ""
} | ||
c29914 | train | // WithPeerFilter sets a peer filter which provides per-request filtering of peers | {
"resource": ""
} | ||
c29915 | train | // WithPeerSorter sets a peer sorter function which provides per-request
// sorting of peers | {
"resource": ""
} | ||
c29916 | train | // WithPrioritySelector sets a priority selector function which provides per-request
// prioritization of peers | {
"resource": ""
} | ||
c29917 | train | // WithRetryOpts sets the retry options | {
"resource": ""
} | ||
c29918 | train | // SetPeerFilter sets the peer filter | {
"resource": ""
} | ||
c29919 | train | // SetPeerSorter sets the priority selector | {
"resource": ""
} | ||
c29920 | train | // SetRetryOpts sets the priority selector | {
"resource": ""
} | ||
c29921 | train | // NewInvoker creates a new RetryableInvoker | {
"resource": ""
} | ||
c29922 | train | // Invoke invokes the given function and performs retries according
// to the retry options. | {
"resource": ""
} | ||
c29923 | train | //GetLogger returns SDK logger implementation | {
"resource": ""
} | ||
c29924 | train | //InitLogger sets custom logger which will be used over deflogger.
//It is required to call this function before making any loggings. | {
"resource": ""
} | ||
c29925 | train | //SetLevel - setting log level for given module | {
"resource": ""
} | ||
c29926 | train | //GetLevel - getting log level for given module | {
"resource": ""
} | ||
c29927 | train | //IsEnabledFor - Check if given log level is enabled for given module | {
"resource": ""
} | ||
c29928 | train | //HideCallerInfo - Do not show caller info in log lines for given log level | {
"resource": ""
} | ||
c29929 | train | //getLoggerOpts - returns LoggerOpts which can be used for customization | {
"resource": ""
} | ||
c29930 | train | // Print calls go log.Output.
// Arguments are handled in the manner of fmt.Print. | {
"resource": ""
} | ||
c29931 | train | // Printf calls go log.Output.
// Arguments are handled in the manner of fmt.Printf. | {
"resource": ""
} | ||
c29932 | train | // Println calls go log.Output.
// Arguments are handled in the manner of fmt.Println. | {
"resource": ""
} | ||
c29933 | train | // Debug calls go log.Output.
// Arguments are handled in the manner of fmt.Print. | {
"resource": ""
} | ||
c29934 | train | // Debugf calls go log.Output.
// Arguments are handled in the manner of fmt.Printf. | {
"resource": ""
} | ||
c29935 | train | // Debugln calls go log.Output.
// Arguments are handled in the manner of fmt.Println. | {
"resource": ""
} | ||
c29936 | train | // Info calls go log.Output.
// Arguments are handled in the manner of fmt.Print. | {
"resource": ""
} | ||
c29937 | train | // Infof calls go log.Output.
// Arguments are handled in the manner of fmt.Printf. | {
"resource": ""
} | ||
c29938 | train | // Infoln calls go log.Output.
// Arguments are handled in the manner of fmt.Println. | {
"resource": ""
} | ||
c29939 | train | // Warn calls go log.Output.
// Arguments are handled in the manner of fmt.Print. | {
"resource": ""
} | ||
c29940 | train | // Warnf calls go log.Output.
// Arguments are handled in the manner of fmt.Printf. | {
"resource": ""
} | ||
c29941 | train | // Warnln calls go log.Output.
// Arguments are handled in the manner of fmt.Println. | {
"resource": ""
} | ||
c29942 | train | // Error calls go log.Output.
// Arguments are handled in the manner of fmt.Print. | {
"resource": ""
} | ||
c29943 | train | // Errorf calls go log.Output.
// Arguments are handled in the manner of fmt.Printf. | {
"resource": ""
} | ||
c29944 | train | // Errorln calls go log.Output.
// Arguments are handled in the manner of fmt.Println. | {
"resource": ""
} | ||
c29945 | train | //ChangeOutput for changing output destination for the logger. | {
"resource": ""
} | ||
c29946 | train | // Accept returns whether or not to Accept a peer as a canditate for endorsement | {
"resource": ""
} | ||
c29947 | train | // Greylist the given peer URL | {
"resource": ""
} | ||
c29948 | train | // required decides whether the given status error warrants a greylist
// on the peer causing the error | {
"resource": ""
} | ||
c29949 | train | // peerURLFromConnectionFailedStatus extracts the peer url from the status error
// details | {
"resource": ""
} | ||
c29950 | train | // initialize initializes the service with client context | {
"resource": ""
} | ||
c29951 | train | // GetPeers returns the available peers | {
"resource": ""
} | ||
c29952 | train | // createChaincodeDeployProposal creates an instantiate or upgrade chaincode proposal. | {
"resource": ""
} | ||
c29953 | train | //NewMockChannel creates new mock channel | {
"resource": ""
} | ||
c29954 | train | // String representation of the code | {
"resource": ""
} | ||
c29955 | train | //GetDefault returns default core | {
"resource": ""
} | ||
c29956 | train | // WithRetry supplies retry options | {
"resource": ""
} | ||
c29957 | train | // SignChannelConfig signs a configuration. | {
"resource": ""
} | ||
c29958 | train | // CreateChannel calls the orderer to start building the new channel. | {
"resource": ""
} | ||
c29959 | train | // GenesisBlockFromOrderer returns the genesis block from the defined orderer that may be
// used in a join request | {
"resource": ""
} | ||
c29960 | train | // LastConfigFromOrderer fetches the current configuration block for the specified channel
// from the given orderer | {
"resource": ""
} | ||
c29961 | train | // createOrUpdateChannel creates a new channel or updates an existing channel. | {
"resource": ""
} | ||
c29962 | train | // QueryChannels queries the names of all the channels that a peer has joined. | {
"resource": ""
} | ||
c29963 | train | // InstallChaincode sends an install proposal to one or more endorsing peers. | {
"resource": ""
} | ||
c29964 | train | // WithHostOverride sets the host name that will be used to resolve the TLS certificate | {
"resource": ""
} | ||
c29965 | train | // WithCertificate sets the X509 certificate used for the TLS connection | {
"resource": ""
} | ||
c29966 | train | // WithKeepAliveParams sets the GRPC keep-alive parameters | {
"resource": ""
} | ||
c29967 | train | // WithFailFast sets the GRPC fail-fast parameter | {
"resource": ""
} | ||
c29968 | train | // WithConnectTimeout sets the GRPC connection timeout | {
"resource": ""
} | ||
c29969 | train | // WithInsecure indicates to fall back to an insecure connection if the
// connection URL does not specify a protocol | {
"resource": ""
} | ||
c29970 | train | // OptsFromPeerConfig returns a set of connection options from the given peer config | {
"resource": ""
} | ||
c29971 | train | // New returns a new "prefer peer" resolver. | {
"resource": ""
} | ||
c29972 | train | // Resolve uses the MinBlockHeight resolver to choose peers but will prefer the ones in the list of preferred peers. | {
"resource": ""
} | ||
c29973 | train | // ShouldDisconnect determines whether the connected peer should be disconnected and reconnected to the preferred peer. | {
"resource": ""
} | ||
c29974 | train | // WithLoadBalancePolicy sets the load-balance policy to use when
// choosing an event endpoint from a set of endpoints | {
"resource": ""
} | ||
c29975 | train | // WithPeerMonitorPeriod is the period with which the connected peer is monitored
// to see whether or not it should be disconnected. | {
"resource": ""
} | ||
c29976 | train | // WithPeerResolver sets the peer resolver that chooses the peer from a discovered list of peers. | {
"resource": ""
} | ||
c29977 | train | // NewPrincipal creates a new MSPPrincipal | {
"resource": ""
} | ||
c29978 | train | // NewSignedByPolicy creates a SignaturePolicy at the given index | {
"resource": ""
} | ||
c29979 | train | // NewNOutOfPolicy creates an NOutOf signature policy | {
"resource": ""
} | ||
c29980 | train | // GetPolicies creates a set of 'signed by' signature policies and corresponding identities for the given set of MSP IDs | {
"resource": ""
} | ||
c29981 | train | // NewIdentityManager creates a new instance of IdentityManager | {
"resource": ""
} | ||
c29982 | train | // NewMockMSPManagerWithError mockcore msp manager | {
"resource": ""
} | ||
c29983 | train | // GetMSPs Provides a list of Membership Service providers | {
"resource": ""
} | ||
c29984 | train | // NewMockIdentityManager Constructor for a identity manager. | {
"resource": ""
} | ||
c29985 | train | // GetSigningIdentity will return an identity that can be used to cryptographically sign an object | {
"resource": ""
} | ||
c29986 | train | // SendBroadcast accepts client broadcast calls and reports them to the listener channel
// Returns the first enqueued error, or nil if there are no enqueued errors | {
"resource": ""
} | ||
c29987 | train | // NewBlock returns a new mock block initialized with the given channel | {
"resource": ""
} | ||
c29988 | train | // NewTransaction creates a new transaction | {
"resource": ""
} | ||
c29989 | train | // NewTransactionWithCCEvent creates a new transaction with the given chaincode event | {
"resource": ""
} | ||
c29990 | train | // NewFilteredBlock returns a new mock filtered block initialized with the given channel
// and filtered transactions | {
"resource": ""
} | ||
c29991 | train | // NewFilteredTx returns a new mock filtered transaction | {
"resource": ""
} | ||
c29992 | train | // NewFilteredTxWithCCEvent returns a new mock filtered transaction
// with the given chaincode event | {
"resource": ""
} | ||
c29993 | train | // New Returns a Orderer instance | {
"resource": ""
} | ||
c29994 | train | // WithURL is a functional option for the orderer.New constructor that configures the orderer's URL. | {
"resource": ""
} | ||
c29995 | train | // WithTLSCert is a functional option for the orderer.New constructor that configures the orderer's TLS certificate | {
"resource": ""
} | ||
c29996 | train | // WithServerName is a functional option for the orderer.New constructor that configures the orderer's server name | {
"resource": ""
} | ||
c29997 | train | // FromOrdererConfig is a functional option for the orderer.New constructor that configures a new orderer
// from a apiconfig.OrdererConfig struct | {
"resource": ""
} | ||
c29998 | train | // FromOrdererName is a functional option for the orderer.New constructor that obtains an apiconfig.OrdererConfig
// by name from the apiconfig.Config supplied to the constructor, and then constructs a new orderer from it | {
"resource": ""
} | ||
c29999 | train | // SendBroadcast Send the created transaction to Orderer. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.