models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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"`
	Limit     int       `query:"limit"`
}

LocationHistoryRequest represents query parameters for location history

func (LocationHistoryRequest) Validate

type LocationHistoryResponse

type LocationHistoryResponse struct {
	Count     int                `json:"count"`
	Locations []LocationResponse `json:"locations"`
}

LocationHistoryResponse represents the response for location history

type LocationResponse

type LocationResponse struct {
	Timestamp time.Time `json:"timestamp"`
	Latitude  float64   `json:"latitude"`
	Longitude float64   `json:"longitude"`
	DeviceID  string    `json:"device_id"`
}

LocationResponse represents a single location

type QueryParamsResponse

type QueryParamsResponse struct {
	Start time.Time `json:"start"`
	End   time.Time `json:"end"`
	Limit int       `json:"limit"`
}

QueryParamsResponse shows the actual query parameters used

Jump to

Keyboard shortcuts

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