db

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: 7 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 interface {
	AddAggregate(*ippb.Aggregate) error
	WipeOldData(time.Duration) (int64, error)
	ScanIP(time.Time, string) (map[string]int64, error)
	ScanType(time.Time, string) (map[string]int64, error)
	ScanAll(time.Time, func(string, map[string]int64) error) error
	Close()
}

func Open

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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