db

package
v0.0.0-...-eba6480 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	LevelDB *leveldb.DB
}

func New

func New(filename string) *Client

func (*Client) Clear

func (p *Client) Clear(prefix string) error

Clear is table name:prefix all clear

func (*Client) Close

func (p *Client) Close() error

func (*Client) IsLevelDB

func (p *Client) IsLevelDB() error

IsLevelDB check for client

func (*Client) Set

func (p *Client) Set(key string, in interface{}) error

Set prefix:unix into data

Jump to

Keyboard shortcuts

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