redisutils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MinElements = 6
View Source
const RedisPort = 6379
View Source
const Timeout = 2

Variables

This section is empty.

Functions

func QueryRedis

func QueryRedis(pfwd *portforwarder.PortForwarder, namespace string, podName string, podPort int) (RedisInfo, ClusterNodes, ClusterSlots, error)

Types

type BySlot

type BySlot ClusterSlots

Sorter functions: Sort by Start slot

func (BySlot) Len

func (s BySlot) Len() int

func (BySlot) Less

func (s BySlot) Less(i, j int) bool

func (BySlot) Swap

func (s BySlot) Swap(i, j int)

type ClusterNodes added in v0.0.2

type ClusterNodes map[string][]string

ClusterNodes is a type that holds the result from one query

func NewClusterNodes added in v0.0.2

func NewClusterNodes(cliData string) ClusterNodes

func (*ClusterNodes) GetFlagsSelf added in v0.0.2

func (n *ClusterNodes) GetFlagsSelf() string

GetFlagsSelf returns the status field for self

type ClusterSlots added in v0.0.2

type ClusterSlots []redis.ClusterSlot

type RedisInfo added in v0.0.5

type RedisInfo map[string]string

Jump to

Keyboard shortcuts

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