db

package
v0.0.0-...-3356bae Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: LGPL-2.1 Imports: 14 Imported by: 0

README

Database entities / data operations repository

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoDrones

type RepoDrones interface {
	IsPopulated() bool
	PopulateDB() error

	GetUser(field string, filterOptional ...bool) (*dto.User, error)
	GetUsers() (*[]dto.User, error)

	GetDrone(serialNumber string) (*dto.Drone, error)
	GetDrones(filter string) (*[]dto.Drone, error)
	RegisterDrone(drone *dto.Drone) error
	CheckingLoadedMedicationsItems(serialNumber string) (*[]string, error)
	LoadMedicationItemsADrone(drone *dto.Drone, medicationItemIDs []interface{}) error
	ExistDrone(serialNumber string) error

	GetMedications() (*[]dto.Medication, error)
}

func NewRepoDrones

func NewRepoDrones(svcConf *utils.SvcConfig) RepoDrones

type RepoEventLog

type RepoEventLog interface {
	GetEventLogs() (*[]dto.LogEvent, error)
	CheckBatteryLevelsDrones(drones *[]dto.Drone) error
}

func NewRepoEventLog

func NewRepoEventLog(svcConf *utils.SvcConfig) RepoEventLog

Jump to

Keyboard shortcuts

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