Documentation ¶
Index ¶
Constants ¶
const AmbiguousStream = 418
When create() is called and although the uuid is different, the tags are not unique
const AmbiguousTags = 412
If a set of tags is given to identify a single stream, but fails to do so
const AnnotationTooBig = 422
Annotations cannot exceed 2MB
const AnnotationVersionMismatch = 423
The annotation version did not match
const AwesomenessExceedsThreshold = 410
Just in case
const BadValue = 425
Returned when you try insert NaN or Inf values
const BlazeIt = 420
Just in case this is required after Prop 64
const ClusterDegraded = 419
When a write op on an unmapped UUID is attempted
const ConcurrentModification = 430
Returned if you try delete a stream while its attributes are being modified
const ContextError = 402
Things like user timeout
const EtcdFailure = 428
Returned when the etcd cluster is unhealthy
const FaultInjectionDisabled = 424
Fault injection is disabled (you need $BTRDB_ENABLE_FAULT_INJECTON=YES)
const GenericError = 416
When an error has no code
const InsertFailure = 403
Like tree depth
const InsertTooBig = 414
The insertion is too big (that's what she said)
const InvalidCollection = 407
Collection name is invalid
const InvalidLimit = 411
For commands accepting a limit argument, the passed limit is invalid
const InvalidPointWidth = 415
Point widths are [0, 64)
const InvalidTagKey = 408
Tag key is invalid
const InvalidTagValue = 409
Tag value is invalid
const InvalidTimeRange = 413
The start/end times are invalid
const InvalidVersions = 427
Returned when you try do changed ranges with bad versions
const InvariantFailure = 500
Used for assert statements
const NoSuchPoint = 401
If you ask for next/prev point but there isn't one
const NoSuchStream = 404
const NotImplemented = 501
Haha lol
const ResourceDepleted = 426
Used when the cluster is extremely overloaded and is shedding load to maintain stability
const ReusedUUID = 429
Returned if you try create a stream with a uuid that is the same as a previously deleted stream
const SameStream = 417
When create() is called and the uuid and tags are the same
const StreamExists = 406
The stream already exists
const WrongArgs = 421
Generated in drivers when the arguments are the wrong type or length
const WrongEndpoint = 405
We don't have a write lock for this stream
Variables ¶
This section is empty.
Functions ¶
func ChkContextError ¶
Context errors cascade quite a bit and tend to cause duplicate errors in the return channel. Try not to leak goroutiens by] blocking on them