driver

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drivers

func Drivers() map[string]DriverStructure

func Register

func Register(name string, driver Driver, version string)

Types

type Driver

type Driver interface {
	Open(uri string) (XdbDriver, error)
}

type DriverStructure

type DriverStructure struct {
	Version string // 版本
	Error   string
	// contains filtered or unexported fields
}

type ListValue

type ListValue struct {
	Key   string
	Value string
}

type XdbDriver

type XdbDriver interface {
	GetKeyVal(key []byte) ([]byte, error)
	PutKeyVal(key []byte, val []byte) error
	DelKeyVal(key []byte) error
	GetListByKeyPrefix(key []byte) ([]ListValue, error)
	Close() error
}

func Open

func Open(name string, uri string) (XdbDriver, error)

Jump to

Keyboard shortcuts

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