xdb

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_PREFIX = "xdb"

Variables

This section is empty.

Functions

func BackCient

func BackCient(name string, c *Client) bool

func InitClientPool

func InitClientPool(name string, uri string, count uint8) error

Types

type Client

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

func GetClient

func GetClient(name string) (c *Client, err error)

func NewClient

func NewClient(name, uri string) (*Client, error)

func (*Client) Close

func (This *Client) Close() error

func (*Client) DelKeyVal

func (This *Client) DelKeyVal(table, key string) error

func (*Client) GetKeyVal

func (This *Client) GetKeyVal(table, key string, data interface{}) ([]byte, error)

func (*Client) GetKeyValBytes

func (This *Client) GetKeyValBytes(table, key string) ([]byte, error)

func (*Client) GetListByKeyPrefix

func (This *Client) GetListByKeyPrefix(table, key string, data interface{}) ([]driver.ListValue, error)

func (*Client) PutKeyVal

func (This *Client) PutKeyVal(table, key string, data interface{}) error

func (*Client) PutKeyValBytes

func (This *Client) PutKeyValBytes(table, key string, val []byte) error

func (*Client) SetPrefix

func (This *Client) SetPrefix(prefix string) *Client

type PoolClient

type PoolClient struct {
	sync.RWMutex
	ClientChan         chan *Client
	Uri                string
	MaxClientCount     uint8
	CurrentClientCount uint8
	AvailableCount     uint8
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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