_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c9500 | // ThresholdTripFunc returns a TripFunc with that trips whenever
// the failure count meets the threshold. | |
c9501 | // ConsecutiveTripFunc returns a TripFunc that trips whenever
// the consecutive failure count meets the threshold. | |
c9502 | // NewPanel creates a new Panel | |
c9503 | // Add sets the name as a reference to the given circuit breaker. | |
c9504 | // Get retrieves a circuit breaker by name. If no circuit breaker exists, it
// returns the NoOp one and sets ok to false. | |
c9505 | // 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. | |
c9506 | // 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. | |
c9507 | // 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. | |
c9508 | // NewHTTPClientWithBreaker provides a circuit breaker wrapper around http.Client.
// It wraps all of the regular http.Client functions using the provided Breaker. | |
c9509 | // Fail records a failure in the current bucket. | |
c9510 | // Success records a success in the current bucket. | |
c9511 | // Failures returns the total number of failures recorded in all buckets. | |
c9512 | // Successes returns the total number of successes recorded in all buckets. | |
c9513 | // Reset resets the count of all buckets. | |
c9514 | // NewMutationState creates a new MutationState for tracking mutation state. | |
c9515 | // Add includes an operation's mutation information in this mutation state. | |
c9516 | // UnmarshalJSON unmarshal's a mutation state from JSON. | |
c9517 | // One assigns the first value from the results into the value pointer. | |
c9518 | // NewSearchSortField creates a new SearchSortField. | |
c9519 | // Type allows you to specify the FTS field sort type. | |
c9520 | // Mode allows you to specify the FTS field sort mode. | |
c9521 | // Missing allows you to specify the FTS field sort missing behaviour. | |
c9522 | // NewSearchSortGeoDistance creates a new SearchSortGeoDistance. | |
c9523 | // Unit specifies the unit used for sorting | |
c9524 | // Close shuts down all buckets in this cluster and invalidates any references this cluster has. | |
c9525 | // NewMatchPhraseQuery creates a new MatchPhraseQuery | |
c9526 | // NewRegexpQuery creates a new RegexpQuery. | |
c9527 | // NewQueryStringQuery creates a new StringQuery. | |
c9528 | // Start specifies the start value and inclusiveness for this range query. | |
c9529 | // End specifies the end value and inclusiveness for this range query. | |
c9530 | // DateTimeParser specifies which date time string parser to use. | |
c9531 | // NewConjunctionQuery creates a new ConjunctionQuery. | |
c9532 | // And adds new predicate queries to this conjunction query. | |
c9533 | // NewDisjunctionQuery creates a new DisjunctionQuery. | |
c9534 | // Or adds new predicate queries to this disjunction query. | |
c9535 | // Must specifies a query which must match. | |
c9536 | // MustNot specifies a query which must not match. | |
c9537 | // ShouldMin specifies the minimum value before the should query will boost. | |
c9538 | // MarshalJSON marshal's this query to JSON for the FTS REST API. | |
c9539 | // NewWildcardQuery creates a new WildcardQuery. | |
c9540 | // NewDocIdQuery creates a new DocIdQuery. | |
c9541 | // AddDocIds adds addition document ids to this query. | |
c9542 | // NewBooleanFieldQuery creates a new BooleanFieldQuery. | |
c9543 | // NewTermQuery creates a new TermQuery. | |
c9544 | // NewPhraseQuery creates a new PhraseQuery. | |
c9545 | // NewPrefixQuery creates a new PrefixQuery. | |
c9546 | // NewTermRangeQuery creates a new TermRangeQuery. | |
c9547 | // NewGeoDistanceQuery creates a new GeoDistanceQuery. | |
c9548 | // NewGeoBoundingBoxQuery creates a new GeoBoundingBoxQuery. | |
c9549 | // Content assigns the value of the result into the valuePtr using default decoding. | |
c9550 | // Decode assigns the value of the result into the valuePtr using the decode function
// specified. | |
c9551 | // thing,false , animals,true , anotherthing,false .thing | |
c9552 | // 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 | |
c9553 | // Exists verifies that the item at idx exists. | |
c9554 | // Exists returns whether or not the document exists. | |
c9555 | // Facets contains the information relative to the facets requested in the search query. | |
c9556 | // Took returns the time taken to execute the search. | |
c9557 | // SearchQuery performs a n1ql query and returns a list of rows or an error. | |
c9558 | // Upsert creates a new document in the Collection if it does not exist, if it does exist then it updates it. | |
c9559 | // get performs a full document fetch against the collection | |
c9560 | // Exists checks if a document exists for the given key. | |
c9561 | // GetFromReplica returns the value of a particular document from a replica server.. | |
c9562 | // GetAndTouch retrieves a document and simultaneously updates its expiry time. | |
c9563 | // GetAndLock locks a document for a period of time, providing exclusive RW access to it. | |
c9564 | // Unlock unlocks a document which was locked with GetAndLock. | |
c9565 | // Touch touches a document, specifying a new expiry time for it. | |
c9566 | // 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 | |
c9567 | // Count allows you to retrieve the number of items in an array or keys within an
// dictionary within an element of a document. | |
c9568 | // LookupIn performs a set of subdocument lookup operations on the document identified by key. | |
c9569 | // 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. | |
c9570 | // Replace replaces the value of the field at path. | |
c9571 | // Remove removes the field at path. | |
c9572 | // RemoveFull removes the full document, including metadata. | |
c9573 | // ArrayAddUnique adds an dictionary add unique operation to this mutation operation set. | |
c9574 | // Decrement adds a decrement operation to this mutation operation set. | |
c9575 | // MutateIn performs a set of subdocument mutations on the document specified by key. | |
c9576 | // Append appends a byte value to a document. | |
c9577 | // Prepend prepends a byte value to a document. | |
c9578 | // 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. | |
c9579 | // ViewQuery performs a view query and returns a list of rows or an error. | |
c9580 | // DefaultCollection returns an instance of the default collection. | |
c9581 | // NewTermFacet creates a new TermFacet | |
c9582 | // AddRange adds a new range to this numeric range facet. | |
c9583 | // NewNumericFacet creates a new numeric range facet. | |
c9584 | // AddRange adds a new range to this date range facet. | |
c9585 | // NewDateFacet creates a new date range facet. | |
c9586 | // startKvOpTrace starts a new span for a given operationName. If parentSpanCtx is not nil then the span will be a
// ChildOf that span context. | |
c9587 | // DefaultDecode applies the default Couchbase transcoding behaviour to decode into a Go type. | |
c9588 | // 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... | |
c9589 | // 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. | |
c9590 | // 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. | |
c9591 | // IsScopeMissingError verifies whether or not the cause for an error is scope unknown | |
c9592 | // IsCollectionMissingError verifies whether or not the cause for an error is scope unknown | |
c9593 | // IsKeyExistsError indicates whether the passed error is a
// key-value "Key Already Exists" error. | |
c9594 | // IsKeyNotFoundError indicates whether the passed error is a
// key-value "Key Not Found" error. | |
c9595 | // IsTempFailError indicates whether the passed error is a
// key-value "temporary failure, try again later" error. | |
c9596 | // IsValueTooBigError indicates whether the passed error is a
// key-value "document value was too large" error. | |
c9597 | // IsKeyLockedError indicates whether the passed error is a
// key-value operation failed due to the document being locked. | |
c9598 | // IsPathExistsError indicates whether the passed error is a
// key-value "given path already exists in the document" error. | |
c9599 | // IsInvalidRangeError indicates whether the passed error is a
// key-value "requested value is outside range" error. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.