Documentation ¶
Index ¶
- Variables
- func DeviceMatchesQuery(deps QueryDependencies, device models.Device, query models.Query) (bool, error)
- func FiltersFromQuery(query map[string][]string) ([]models.Filter, error)
- func QueryDevices(deps QueryDependencies, devices []models.Device, query models.Query) (selectedDevices []models.Device, unselectedDevices []models.Device, err error)
- func ValidateQuery(query models.Query) error
- type QueryDependencies
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConditionInvalid = errors.New("invalid condition") ErrOperatorInvalid = errors.New("invalid operator") ErrPropertyInvalid = errors.New("invalid device property") ErrServiceStateInvalid = errors.New("invalid service state") ErrNoEmptyFields = errors.New("fields should not be empty") )
Functions ¶
func DeviceMatchesQuery ¶
func QueryDevices ¶
func ValidateQuery ¶
Types ¶
type QueryDependencies ¶
Click to show internal directories.
Click to hide internal directories.