leveldb

package
v0.0.0-...-25bf8ac Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func Open

func Open(path string, mask ippb.IPMask) (*DB, error)

func (*DB) AddAggregate

func (db *DB) AddAggregate(aggr *ippb.Aggregate) error

func (*DB) Close

func (db *DB) Close()

func (*DB) Compact

func (db *DB) Compact() error

func (*DB) ScanAll

func (db *DB) ScanAll(startTime time.Time, f func(string, map[string]int64) error) error

func (*DB) ScanIP

func (db *DB) ScanIP(startTime time.Time, ip string) (map[string]int64, error)

func (*DB) ScanType

func (db *DB) ScanType(startTime time.Time, t string) (map[string]int64, error)

func (*DB) WipeOldData

func (db *DB) WipeOldData(age time.Duration) (int64, error)

Jump to

Keyboard shortcuts

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