Documentation ¶
Index ¶
- type Node
- func (n *Node) Activate(rID api.RangeID) error
- func (n *Node) Deactivate(rID api.RangeID) error
- func (n *Node) DrainRanges()
- func (n *Node) Drop(rID api.RangeID) error
- func (n *Node) GetLoadInfo(rID api.RangeID) (api.LoadInfo, error)
- func (n *Node) Prepare(rm api.Meta, parents []api.Parent) error
- func (n *Node) Run(ctx context.Context) error
- type Range
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { DrainBeforeShutdown bool // contains filtered or unexported fields }
func (*Node) Deactivate ¶
Deactivate: Disable writes to the range, because we're about to move it and I don't have the time to implement something better today. In this example, keys are writable on exactly one node. (Or zero, during failures!)
Click to show internal directories.
Click to hide internal directories.