lease

package
v2.3.0-alpha.0....-de02254 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLessor

func NewLessor(lessorID uint8, dr DeleteableRange) *lessor

Types

type DeleteableRange

type DeleteableRange interface {
	DeleteRange(key, end []byte) (int64, int64)
}

DeleteableRange defines an interface with DeleteRange method. We define this interface only for lessor to limit the number of methods of storage.KV to what lessor actually needs.

Having a minimum interface makes testing easy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL