raftdb

package
v0.0.0-...-303e327 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RaftDB

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

func OpenRaftDB

func OpenRaftDB(path string, isSync bool, dbOpts ...kvstore.DbOptions) (*RaftDB, error)

func (*RaftDB) Close

func (r *RaftDB) Close() error

func (*RaftDB) Get

func (r *RaftDB) Get(key []byte) ([]byte, error)

don't return error if not found key

func (*RaftDB) Put

func (r *RaftDB) Put(key, value []byte) error

Jump to

Keyboard shortcuts

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