Constructors
constructor
new Range( start: Buffer | string , end?: Buffer | string ) : Range
Parameters
start: Buffer | string
Default value end: Buffer | string = emptyKey
Methods
compare
compare( other: Range ) : number
Parameters
Returns number
includes
includes( value: string | Buffer ) : boolean
Parameters
Returns boolean
Static prefix
prefix( prefix: string | Buffer ) : Range
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
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