nodetool

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

type NodeMap

type NodeMap map[string]*Node

type NodeState

type NodeState string
const (
	NodeStateNormal  NodeState = "Normal"
	NodeStateLeaving NodeState = "Leaving"
	NodeStateJoining NodeState = "Joining"
	NodeStateMoving  NodeState = "Moving"
)

type NodeStatus

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

type Nodetool

type Nodetool struct {
	// contains filtered or unexported fields
}

func NewFromURL

func NewFromURL(u *url.URL) *Nodetool

func (*Nodetool) Status

func (t *Nodetool) Status() (NodeMap, error)

Jump to

Keyboard shortcuts

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