nvr_unifi_protect

package
v0.0.0-...-5fd7971 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTunneledUnifiProtectDbSql

func GetTunneledUnifiProtectDbSql(ctx context.Context, cancelFunc context.CancelCauseFunc, unifiProtectHost string) (*sql.DB, error)

func GetTunneledUnifiProtectDbSqlx

func GetTunneledUnifiProtectDbSqlx(ctx context.Context, cancelFunc context.CancelCauseFunc, unifiProtectHost string) (*sqlx.DB, error)

Types

type CameraRecord

type CameraRecord struct {
	Mac  string `json:"Mac",db:"mac"`
	Type string `json:"Type",db:"type"`
	Name string `json:"Name",db:"name"`
	Id   string `json:"Id",db:"id"`
}

func SelectCameras

func SelectCameras(db *sqlx.DB) ([]CameraRecord, error)

type LicensePlateRecord

type LicensePlateRecord struct {
	Start        int64  `db:"start"`
	End          int64  `db:"end"`
	LicensePlate string `db:"license_plate"`
}

type LicensePlateWithLocalTime

type LicensePlateWithLocalTime struct {
	Start        time.Time
	End          time.Time
	LicensePlate string
}

func SelectLicensePlates

func SelectLicensePlates(db *sqlx.DB) ([]LicensePlateWithLocalTime, error)

Jump to

Keyboard shortcuts

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