eyes

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	abcicli.Client
}

func NewClient

func NewClient(addr string) (*Client, error)

func NewLocalClient

func NewLocalClient(dbName string, cacheSize int) *Client

func (*Client) Get

func (client *Client) Get(key []byte) (value []byte)

Convenience KVStore interface

func (*Client) GetByIndex

func (client *Client) GetByIndex(index int64) (key []byte, value []byte, err error)

func (*Client) GetByKey

func (client *Client) GetByKey(key []byte) (index int64, value []byte, err error)

func (*Client) GetByKeyWithProof

func (client *Client) GetByKeyWithProof(key []byte) (value []byte, proof []byte, err error)

TODO: Support returning index too?

func (*Client) Remove

func (client *Client) Remove(key []byte)

Convenience

func (*Client) Set

func (client *Client) Set(key []byte, value []byte)

Convenience KVStore interface

Jump to

Keyboard shortcuts

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