detector

package
v0.0.0-...-41c8d9c Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDetectorIDs

func FindDetectorIDs(tx *sql.Tx, detectors []database.Detector) ([]int64, error)

findDetectorIDs retrieve ids of the detectors from the database, if any is not found, return the error.

func GetDetectors

func GetDetectors(tx *sql.Tx, query string, id int64) ([]database.Detector, error)

func PersistDetectors

func PersistDetectors(tx *sql.Tx, detectors []database.Detector) error

Types

type DetectorMap

type DetectorMap struct {
	ByID    map[int64]database.Detector
	ByValue map[database.Detector]int64
}

func FindAllDetectors

func FindAllDetectors(tx *sql.Tx) (DetectorMap, error)

Jump to

Keyboard shortcuts

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