immuc

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Options added in v0.7.0

func Options() *client.Options

func PadRight

func PadRight(str, pad string, length int) string

PadRight ...

func PrintByIndex

func PrintByIndex(item *schema.StructuredItem, valueOnly bool) string

PrintByIndex ...

func PrintItem

func PrintItem(key []byte, value []byte, message interface{}, valueOnly bool) string

PrintItem ...

func PrintRoot

func PrintRoot(root *schema.Root) string

PrintRoot ...

func PrintSetItem

func PrintSetItem(set []byte, rkey []byte, score float64, message interface{}) string

PrintSetItem ...

Types

type Client

type Client interface {
	Connect(args []string) error
	Disconnect(args []string) error
	CurrentRoot(args []string) (string, error)
	GetByIndex(args []string) (string, error)
	GetKey(args []string) (string, error)
	RawSafeGetKey(args []string) (string, error)
	SafeGetKey(args []string) (string, error)
	GetRawBySafeIndex(args []string) (string, error)
	Login(args []string) (string, error)
	Logout(args []string) (string, error)
	History(args []string) (string, error)
	HealthCheck(args []string) (string, error)
	Reference(args []string) (string, error)
	SafeReference(args []string) (string, error)
	ZScan(args []string) (string, error)
	IScan(args []string) (string, error)
	Scan(args []string) (string, error)
	Count(args []string) (string, error)
	RawSafeSet(args []string) (string, error)
	Set(args []string) (string, error)
	SafeSet(args []string) (string, error)
	ZAdd(args []string) (string, error)
	SafeZAdd(args []string) (string, error)
	Consistency(args []string) (string, error)
	Inclusion(args []string) (string, error)
	ValueOnly() bool
	SetValueOnly(v bool)
	CreateDatabase(args []string) (string, error)
	DatabaseList(args []string) (string, error)
	UseDatabase(args []string) (string, error)
	UserCreate(args []string) (string, error)
	SetActiveUser(args []string, active bool) (string, error)
	SetUserPermission(args []string) (string, error)
	UserList(args []string) (string, error)
	ChangeUserPassword(args []string) (string, error)
}

Client ...

func Init

func Init(opts *client.Options) (Client, error)

Init ...

Jump to

Keyboard shortcuts

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