models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationHistoryRequest

type LocationHistoryRequest struct {
	DeviceID  string    `query:"device_id" validate:"required"`
	SpaceSlug string    `query:"space_slug" validate:"required"`
	Start     time.Time `query:"start"`
	End       time.Time `query:"end"`
}

LocationHistoryRequest represents query parameters for location history

func (LocationHistoryRequest) Validate

type LocationResponse

type LocationResponse struct {
	Timestamp time.Time `json:"timestamp" example:"2024-01-15T10:30:00Z"`
	Latitude  float64   `json:"latitude" example:"37.7749"`
	Longitude float64   `json:"longitude" example:"-122.4194"`
	DeviceID  string    `json:"device_id" example:"device-123"`
}

LocationResponse represents a single location

Jump to

Keyboard shortcuts

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