lvDB

package module
v0.0.0-...-0794962 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2013 License: MIT Imports: 4 Imported by: 2

README

lvdb

levelDB server and client

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClientBroken = errors.New("lvDB: client broken")

Functions

This section is empty.

Types

type Client

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

func (*Client) Close

func (c *Client) Close()

func (*Client) Del

func (c *Client) Del(keys ...[]byte) error

func (*Client) Get

func (c *Client) Get(keys ...[]byte) (replys [][]byte, err error)

func (*Client) Ping

func (c *Client) Ping() error

func (*Client) Put

func (c *Client) Put(kvs ...Kv) error

type Kv

type Kv struct {
	Key   []byte
	Value []byte
}

type Pool

type Pool struct {
	Url     string
	MaxIdle uint32
	// contains filtered or unexported fields
}

func NewPool

func NewPool(url string, maxIdel uint32) *Pool

func (*Pool) Get

func (p *Pool) Get() (*Client, error)

func (*Pool) Put

func (p *Pool) Put(client *Client)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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