etcd3 API - v2.0.0
    Preparing search index...

    Class Range

    Range represents a byte range in etcd. Parts of this class are based on the logic found internally within etcd here: https://github.com/coreos/etcd/blob/c4a45c57135bf49ae701352c9151dc1be433d1dd/pkg/adt/interval_tree.go

    Index
    • Parameters

      • start: string | Buffer<ArrayBufferLike>
      • end: string | Buffer<ArrayBufferLike> = emptyKey

      Returns Range

    end: Buffer
    start: Buffer
    • Compares the other range to this one, returning: -1 if this range comes before the other one 1 if this range comes after the other one 0 if they overlap

      Parameters

      Returns number

    • Returns whether the byte range includes the provided value.

      Parameters

      • value: string | Buffer<ArrayBufferLike>

      Returns boolean

    • Prefix returns a Range that maps to all keys prefixed with the provided string.

      Parameters

      • prefix: string | Buffer<ArrayBufferLike>

      Returns Range