dbservice

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DbSizeLimit = 0
	DbDueDate   = 0

	DbPath = "/server/database/webhooks.db"
)

Functions

func AggregateScans

func AggregateScans(plugin string,
	currentScan map[string]string,
	scansPerTicket int,
	ignoreTheQuantity bool) ([]map[string]string, error)

func ChangeDbPath

func ChangeDbPath(newPath string)

func CheckExpiredData

func CheckExpiredData()

func CheckSizeLimit

func CheckSizeLimit()

func HandleCurrentInfo

func HandleCurrentInfo(scanInfo *data.ScanImageInfo) (prev []byte, isNew bool, err error)

func Init

func Init(db *bbolt.DB, bucket string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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