cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "RDS Payload Generator"
	VER  = "1.2.0"
	DESC = "Payload generator for Redis-Split"
)

Application info

View Source
const (
	OPT_DIR      = "d:dir"
	OPT_KEYS     = "k:keys"
	OPT_RATIO    = "r:ratio"
	OPT_NO_COLOR = "nc:no-color"
	OPT_HELP     = "h:help"
	OPT_VER      = "v:version"

	OPT_VERB_VER     = "vv:verbose-version"
	OPT_COMPLETION   = "completion"
	OPT_GENERATE_MAN = "generate-man"
)

Supported command line options

View Source
const START_PORT = 63000

START_PORT start port

Variables

This section is empty.

Functions

func Run

func Run(gitRev string, gomod []byte)

Run is main utility function

Types

type RedisStore

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

RedisStore is Redis connection pull

func (*RedisStore) Get

func (rs *RedisStore) Get(id string) *redy.Client

Get returns client for given ID from store

func (*RedisStore) Remove

func (rs *RedisStore) Remove(id string)

Remove removes client for given ID from store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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