models

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationResource

type LocationResource struct {
	Name string `json:"name"`
}

LocationResource is the resource representation of a location

type WeatherRecord

type WeatherRecord struct {
	Location    string
	Temperature float64
	Conditions  string
	WindSpeed   float64
	LastUpdated time.Time
}

WeatherRecord represents a weather record in the database

type WeatherResource

type WeatherResource struct {
	Location    string  `json:"location"`
	Temperature float64 `json:"temperature"`
	Conditions  string  `json:"conditions"`
	WindSpeed   float64 `json:"wind_speed"`
	LastUpdated string  `json:"last_updated"`
}

WeatherResource is the resource representation of weather data

Jump to

Keyboard shortcuts

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