redat

package module
v0.0.0-...-a4733e9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 10 Imported by: 0

README

Redat is a tool for visualize Redis-cluster on terminal

Features:

  • Visualize master-replicas relations in the Redis cluster
  • Monitor with metrics: memory, cluster's stats,

Configuration

  • clusterIps: list of nodes' ip in the cluster
  • clusterPorts: corresponding port of each ip

E.g:

cluster:
  clusterIps: ['127.0.0.1','127.0.0.1','127.0.0.1','127.0.0.1','127.0.0.1','127.0.0.1']
  clusterPorts: ['7001','7002','7003','7004','7005', '7000']

Getting started

go mod vendor
go run redat.go

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CLUSTER_IPS   []string
	CLUSTER_PORTS []string
)

Functions

This section is empty.

Types

type By

type By func(p1, p2 *MasterSlave) bool

By is the type of a "less" function that defines the ordering of its Planet arguments.

func (By) Sort

func (by By) Sort(pairs []MasterSlave)

Sort is a method on the function type, By, that sorts the argument slice according to the function.

type ByNode

type ByNode func(p1, p2 *Node) bool

func (ByNode) SortNode

func (by ByNode) SortNode(pairs []Node)

type Cluster

type Cluster struct {
	ClusterIps   []string
	ClusterPorts []string
}

type MasterSlave

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

type Node

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

Jump to

Keyboard shortcuts

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