nodetool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Status() (NodeMap, error)
	Version() (*version.Version, error)
}

func New

func New(client client.Interface) Interface

func NewFromURL

func NewFromURL(u *url.URL) Interface

type Node

type Node struct {
	Host   string
	ID     uuid.UUID
	State  NodeState
	Status NodeStatus
	Local  bool
}

type NodeMap

type NodeMap map[string]*Node

func (NodeMap) LocalNode

func (nm NodeMap) LocalNode() *Node

type NodeState

type NodeState string

NodeState represents the cluster membership state of a C* node.

const (
	NodeStateUnknown NodeState = "Unknown"
	NodeStateNormal  NodeState = "Normal"
	NodeStateLeaving NodeState = "Leaving"
	NodeStateJoining NodeState = "Joining"
	NodeStateMoving  NodeState = "Moving"
)

type NodeStatus

type NodeStatus string

NodeState represents the state of reachability of of a C* node from the perspective of the node answering the query.

const (
	NodeStatusUnknown NodeStatus = "Unknown"
	NodeStatusUp      NodeStatus = "Up"
	NodeStatusDown    NodeStatus = "Down"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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