ssdbcl

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

Build status Coverage Status License GoDoc

SSDBCL

Simple ssdb client

Documentation

Index

Constants

View Source
const (
	ReplyOK = "ok"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(c *Config) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Cmd

func (c *Client) Cmd(args ...interface{}) *Reply

type Config

type Config struct {
	Host string
	Port uint16
	Auth string
}

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

func (KeyValue) ReplyJson

func (kv KeyValue) ReplyJson(v interface{}) error

type Reply

type Reply struct {
	State string
	Data  []string
}

func (*Reply) Bool

func (r *Reply) Bool() bool

func (*Reply) Bytes

func (r *Reply) Bytes() []byte

func (*Reply) Float32

func (r *Reply) Float32() float32

func (*Reply) Float64

func (r *Reply) Float64() float64

func (*Reply) Hash

func (r *Reply) Hash() []KeyValue

func (*Reply) Int

func (r *Reply) Int() int

func (*Reply) Int16

func (r *Reply) Int16() int16

func (*Reply) Int32

func (r *Reply) Int32() int32

func (*Reply) Int64

func (r *Reply) Int64() int64

func (*Reply) Int8

func (r *Reply) Int8() int8

func (*Reply) List

func (r *Reply) List() []string

func (*Reply) ReplyJson

func (r *Reply) ReplyJson(v interface{}) error

func (*Reply) ReplyOk

func (r *Reply) ReplyOk() bool

func (*Reply) String

func (r *Reply) String() string

func (*Reply) Uint16

func (r *Reply) Uint16() uint16

func (*Reply) Uint32

func (r *Reply) Uint32() uint32

func (*Reply) Uint64

func (r *Reply) Uint64() uint64

func (*Reply) Uint8

func (r *Reply) Uint8() uint8

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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