_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c9500
train
// ThresholdTripFunc returns a TripFunc with that trips whenever // the failure count meets the threshold.
{ "resource": "" }
c9501
train
// ConsecutiveTripFunc returns a TripFunc that trips whenever // the consecutive failure count meets the threshold.
{ "resource": "" }
c9502
train
// NewPanel creates a new Panel
{ "resource": "" }
c9503
train
// Add sets the name as a reference to the given circuit breaker.
{ "resource": "" }
c9504
train
// Get retrieves a circuit breaker by name. If no circuit breaker exists, it // returns the NoOp one and sets ok to false.
{ "resource": "" }
c9505
train
// Subscribe returns a channel of PanelEvents. Whenever a breaker changes state, // the PanelEvent will be sent over the channel. See BreakerEvent for the types of events.
{ "resource": "" }
c9506
train
// NewHTTPClient provides a circuit breaker wrapper around http.Client. // It wraps all of the regular http.Client functions. Specifying 0 for timeout will // give a breaker that does not check for time outs.
{ "resource": "" }
c9507
train
// NewHostBasedHTTPClient provides a circuit breaker wrapper around http.Client. This // client will use one circuit breaker per host parsed from the request URL. This allows // you to use a single HTTPClient for multiple hosts with one host's breaker not affecting // the other hosts.
{ "resource": "" }
c9508
train
// NewHTTPClientWithBreaker provides a circuit breaker wrapper around http.Client. // It wraps all of the regular http.Client functions using the provided Breaker.
{ "resource": "" }
c9509
train
// Fail records a failure in the current bucket.
{ "resource": "" }
c9510
train
// Success records a success in the current bucket.
{ "resource": "" }
c9511
train
// Failures returns the total number of failures recorded in all buckets.
{ "resource": "" }
c9512
train
// Successes returns the total number of successes recorded in all buckets.
{ "resource": "" }
c9513
train
// Reset resets the count of all buckets.
{ "resource": "" }
c9514
train
// NewMutationState creates a new MutationState for tracking mutation state.
{ "resource": "" }
c9515
train
// Add includes an operation's mutation information in this mutation state.
{ "resource": "" }
c9516
train
// UnmarshalJSON unmarshal's a mutation state from JSON.
{ "resource": "" }
c9517
train
// One assigns the first value from the results into the value pointer.
{ "resource": "" }
c9518
train
// NewSearchSortField creates a new SearchSortField.
{ "resource": "" }
c9519
train
// Type allows you to specify the FTS field sort type.
{ "resource": "" }
c9520
train
// Mode allows you to specify the FTS field sort mode.
{ "resource": "" }
c9521
train
// Missing allows you to specify the FTS field sort missing behaviour.
{ "resource": "" }
c9522
train
// NewSearchSortGeoDistance creates a new SearchSortGeoDistance.
{ "resource": "" }
c9523
train
// Unit specifies the unit used for sorting
{ "resource": "" }
c9524
train
// Close shuts down all buckets in this cluster and invalidates any references this cluster has.
{ "resource": "" }
c9525
train
// NewMatchPhraseQuery creates a new MatchPhraseQuery
{ "resource": "" }
c9526
train
// NewRegexpQuery creates a new RegexpQuery.
{ "resource": "" }
c9527
train
// NewQueryStringQuery creates a new StringQuery.
{ "resource": "" }
c9528
train
// Start specifies the start value and inclusiveness for this range query.
{ "resource": "" }
c9529
train
// End specifies the end value and inclusiveness for this range query.
{ "resource": "" }
c9530
train
// DateTimeParser specifies which date time string parser to use.
{ "resource": "" }
c9531
train
// NewConjunctionQuery creates a new ConjunctionQuery.
{ "resource": "" }
c9532
train
// And adds new predicate queries to this conjunction query.
{ "resource": "" }
c9533
train
// NewDisjunctionQuery creates a new DisjunctionQuery.
{ "resource": "" }
c9534
train
// Or adds new predicate queries to this disjunction query.
{ "resource": "" }
c9535
train
// Must specifies a query which must match.
{ "resource": "" }
c9536
train
// MustNot specifies a query which must not match.
{ "resource": "" }
c9537
train
// ShouldMin specifies the minimum value before the should query will boost.
{ "resource": "" }
c9538
train
// MarshalJSON marshal's this query to JSON for the FTS REST API.
{ "resource": "" }
c9539
train
// NewWildcardQuery creates a new WildcardQuery.
{ "resource": "" }
c9540
train
// NewDocIdQuery creates a new DocIdQuery.
{ "resource": "" }
c9541
train
// AddDocIds adds addition document ids to this query.
{ "resource": "" }
c9542
train
// NewBooleanFieldQuery creates a new BooleanFieldQuery.
{ "resource": "" }
c9543
train
// NewTermQuery creates a new TermQuery.
{ "resource": "" }
c9544
train
// NewPhraseQuery creates a new PhraseQuery.
{ "resource": "" }
c9545
train
// NewPrefixQuery creates a new PrefixQuery.
{ "resource": "" }
c9546
train
// NewTermRangeQuery creates a new TermRangeQuery.
{ "resource": "" }
c9547
train
// NewGeoDistanceQuery creates a new GeoDistanceQuery.
{ "resource": "" }
c9548
train
// NewGeoBoundingBoxQuery creates a new GeoBoundingBoxQuery.
{ "resource": "" }
c9549
train
// Content assigns the value of the result into the valuePtr using default decoding.
{ "resource": "" }
c9550
train
// Decode assigns the value of the result into the valuePtr using the decode function // specified.
{ "resource": "" }
c9551
train
// thing,false , animals,true , anotherthing,false .thing
{ "resource": "" }
c9552
train
// DecodeAt retrieves the value of the operation by its index. The index is the position of // the operation as it was added to the builder. In order to decode the value it will use the // support Decode function, by default it will use JSONDecode
{ "resource": "" }
c9553
train
// Exists verifies that the item at idx exists.
{ "resource": "" }
c9554
train
// Exists returns whether or not the document exists.
{ "resource": "" }
c9555
train
// Facets contains the information relative to the facets requested in the search query.
{ "resource": "" }
c9556
train
// Took returns the time taken to execute the search.
{ "resource": "" }
c9557
train
// SearchQuery performs a n1ql query and returns a list of rows or an error.
{ "resource": "" }
c9558
train
// Upsert creates a new document in the Collection if it does not exist, if it does exist then it updates it.
{ "resource": "" }
c9559
train
// get performs a full document fetch against the collection
{ "resource": "" }
c9560
train
// Exists checks if a document exists for the given key.
{ "resource": "" }
c9561
train
// GetFromReplica returns the value of a particular document from a replica server..
{ "resource": "" }
c9562
train
// GetAndTouch retrieves a document and simultaneously updates its expiry time.
{ "resource": "" }
c9563
train
// GetAndLock locks a document for a period of time, providing exclusive RW access to it.
{ "resource": "" }
c9564
train
// Unlock unlocks a document which was locked with GetAndLock.
{ "resource": "" }
c9565
train
// Touch touches a document, specifying a new expiry time for it.
{ "resource": "" }
c9566
train
// GetFull indicates that a full document should be retrieved. This command allows you // to do things like combine with Get to fetch a document with certain Xattrs
{ "resource": "" }
c9567
train
// Count allows you to retrieve the number of items in an array or keys within an // dictionary within an element of a document.
{ "resource": "" }
c9568
train
// LookupIn performs a set of subdocument lookup operations on the document identified by key.
{ "resource": "" }
c9569
train
// UpsertFull creates a new document if it does not exist, if it does exist then it // updates it. This command allows you to do things like updating xattrs whilst upserting // a document.
{ "resource": "" }
c9570
train
// Replace replaces the value of the field at path.
{ "resource": "" }
c9571
train
// Remove removes the field at path.
{ "resource": "" }
c9572
train
// RemoveFull removes the full document, including metadata.
{ "resource": "" }
c9573
train
// ArrayAddUnique adds an dictionary add unique operation to this mutation operation set.
{ "resource": "" }
c9574
train
// Decrement adds a decrement operation to this mutation operation set.
{ "resource": "" }
c9575
train
// MutateIn performs a set of subdocument mutations on the document specified by key.
{ "resource": "" }
c9576
train
// Append appends a byte value to a document.
{ "resource": "" }
c9577
train
// Prepend prepends a byte value to a document.
{ "resource": "" }
c9578
train
// Decrement performs an atomic subtraction for an integer document. Passing a // non-negative `initial` value will cause the document to be created if it did not // already exist.
{ "resource": "" }
c9579
train
// ViewQuery performs a view query and returns a list of rows or an error.
{ "resource": "" }
c9580
train
// DefaultCollection returns an instance of the default collection.
{ "resource": "" }
c9581
train
// NewTermFacet creates a new TermFacet
{ "resource": "" }
c9582
train
// AddRange adds a new range to this numeric range facet.
{ "resource": "" }
c9583
train
// NewNumericFacet creates a new numeric range facet.
{ "resource": "" }
c9584
train
// AddRange adds a new range to this date range facet.
{ "resource": "" }
c9585
train
// NewDateFacet creates a new date range facet.
{ "resource": "" }
c9586
train
// startKvOpTrace starts a new span for a given operationName. If parentSpanCtx is not nil then the span will be a // ChildOf that span context.
{ "resource": "" }
c9587
train
// DefaultDecode applies the default Couchbase transcoding behaviour to decode into a Go type.
{ "resource": "" }
c9588
train
// DefaultEncode applies the default Couchbase transcoding behaviour to encode a Go type. // For a byte array this will return the value supplied with Binary flags. // For a string this will return the value supplied with String flags. // For anything else this will try to return the value JSON encoded supplied, with J...
{ "resource": "" }
c9589
train
// JSONEncode applies JSON encoding to a Go type. For byte array data this will just return the value passed // to it as bytes with flags set to JSON.
{ "resource": "" }
c9590
train
// JSONDecode applies JSON decoding behaviour to decode into a Go type. // This function will ignore any flags passed to it, including compression. // If a byte array is supplied as the out parameter then it will assign the // raw bytes to it. // For anything else it will apply JSON Unmarshal.
{ "resource": "" }
c9591
train
// IsScopeMissingError verifies whether or not the cause for an error is scope unknown
{ "resource": "" }
c9592
train
// IsCollectionMissingError verifies whether or not the cause for an error is scope unknown
{ "resource": "" }
c9593
train
// IsKeyExistsError indicates whether the passed error is a // key-value "Key Already Exists" error.
{ "resource": "" }
c9594
train
// IsKeyNotFoundError indicates whether the passed error is a // key-value "Key Not Found" error.
{ "resource": "" }
c9595
train
// IsTempFailError indicates whether the passed error is a // key-value "temporary failure, try again later" error.
{ "resource": "" }
c9596
train
// IsValueTooBigError indicates whether the passed error is a // key-value "document value was too large" error.
{ "resource": "" }
c9597
train
// IsKeyLockedError indicates whether the passed error is a // key-value operation failed due to the document being locked.
{ "resource": "" }
c9598
train
// IsPathExistsError indicates whether the passed error is a // key-value "given path already exists in the document" error.
{ "resource": "" }
c9599
train
// IsInvalidRangeError indicates whether the passed error is a // key-value "requested value is outside range" error.
{ "resource": "" }