ovldb

package
v0.0.0-...-7e6ab84 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Stores overview data into a LevelDB database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OvKeyFormat

type OvKeyFormat interface {
	// contains filtered or unexported methods
}

Handles the format of the LevelDB keys.

func GetKF_V1

func GetKF_V1() OvKeyFormat

type OvLDB

type OvLDB struct {
	OvKeyFormat
	OvValFormat
	DB *leveldb.DB
}

func OpenOvLDB

func OpenOvLDB(path string) (*OvLDB, error)

func OpenSpoolOvLDB

func OpenSpoolOvLDB(spool string, o *opt.Options) (*OvLDB, error)

func (*OvLDB) CancelOv

func (ov *OvLDB) CancelOv(grp []byte, num int64) (err error)

func (*OvLDB) FetchAll

func (ov *OvLDB) FetchAll(grp []byte, num, lastnum int64, tk *storage.TOKEN, ove *storage.OverviewElement) (cur storage.Cursor, err error)

func (*OvLDB) FetchOne

func (ov *OvLDB) FetchOne(grp []byte, num int64, tk *storage.TOKEN, ove *storage.OverviewElement) (rel storage.Releaser, err error)

func (*OvLDB) GroupStat

func (ov *OvLDB) GroupStat(grp []byte) (num, low, high int64, err error)

func (*OvLDB) GroupWriteOv

func (ov *OvLDB) GroupWriteOv(grp []byte, autonum bool, md *storage.Article_MD, tk *storage.TOKEN, ove *storage.OverviewElement) (err error)

func (*OvLDB) InitGroup

func (ov *OvLDB) InitGroup(grp []byte) (err error)

func (*OvLDB) SeekOne

func (ov *OvLDB) SeekOne(grp []byte, num int64, back bool, tk *storage.TOKEN, ove *storage.OverviewElement) (rel storage.Releaser, err error)

type OvValFormat

type OvValFormat interface {
	// contains filtered or unexported methods
}

func GetVF_V1

func GetVF_V1() OvValFormat

Jump to

Keyboard shortcuts

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