kvs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDB

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

LevelDB connection for LevelDB

func InitDB

func InitDB(path string) (*LevelDB, error)

InitDB 接続処理

func (*LevelDB) Close

func (d *LevelDB) Close()

Close 接続

func (*LevelDB) Conn

func (d *LevelDB) Conn() *leveldb.DB

Conn connectionオブジェクトを返す

func (*LevelDB) Get

func (d *LevelDB) Get(prefix, key string) ([]byte, error)

Get Getのwrapper

func (*LevelDB) Put

func (d *LevelDB) Put(prefix, key string, val []byte) error

Put Putのwrapper

func (*LevelDB) SetKey

func (d *LevelDB) SetKey(prefix, key string) ([]byte, error)

SetKey keyを作成する

Jump to

Keyboard shortcuts

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