redis

package
v0.0.0-...-ee62de9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandHistories []string
View Source
var LoginErrOut *tview.TextView
View Source
var RedisKeyTypes = []string{
	"String",
	"List",
	"Set",
	"Zset",
	"Hash",
	"Bitmap",
}
View Source
var RootTreeNode *tview.TreeNode

Functions

func ClearErrTextView

func ClearErrTextView()

func ClearResultTextView

func ClearResultTextView()

func ConnectCallback

func ConnectCallback(form *tview.Form) func()

func FormatJson

func FormatJson(a any) (string, error)

func Init

func Init()

func PrintfErrTextView

func PrintfErrTextView(format string, a ...any)

This wiil be used when the inputField capture the enter key

func PrintfResultTextView

func PrintfResultTextView(format string, a ...any)

func PrintlnErrTextView

func PrintlnErrTextView(a ...any)

func PrintlnResultTextView

func PrintlnResultTextView(a ...any)

func QuitCallback

func QuitCallback() func()

func RenderDashBoardPage

func RenderDashBoardPage() *tview.Flex

func RenderErrTextView

func RenderErrTextView() *tview.TextView

func RenderInputFiedl

func RenderInputFiedl() *tview.InputField

func RenderKeyTreeView

func RenderKeyTreeView() *tview.TreeView

func RenderLoginPage

func RenderLoginPage() *tview.Flex

func RenderQueryWidget

func RenderQueryWidget() *tview.Flex

func RenderResultTextView

func RenderResultTextView() *tview.TextView

func SaveCallback

func SaveCallback(form *tview.Form) func()

Types

type RDS

type RDS struct {
	// contains filtered or unexported fields
}
var RdsClinet *RDS

func NewRDS

func NewRDS(rdsOpt *redis.Options) (*RDS, error)

func (*RDS) ExecuteRawQuery

func (rds *RDS) ExecuteRawQuery(args []string) (string, error)

func (*RDS) GetValue

func (rds *RDS) GetValue(key string) (string, error)

func (*RDS) Scan

func (rds *RDS) Scan(cursor uint64, match string, count int64, keyType string) ([]string, error)

type RedisHelp

type RedisHelp struct {
	Command string
	Args    string
	Version string
	Desc    string
}

Jump to

Keyboard shortcuts

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