places

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	UUID    uuid.UUID `json:"uuid" db:"uuid,pk"`
	Name    string    `json:"name" db:"name"`
	Lat     float64   `json:"lat" db:"lat"`
	Lng     float64   `json:"lng" db:"lng"`
	Country *Country  `json:"country" db:"country"`
}

type CityName

type CityName struct {
	ID       uuid.UUID `json:"id" db:"id"`
	Name     string    `json:"name" db:"name"`
	Language string    `json:"language" db:"lang"`
}

type Country

type Country struct {
	ID   int16  `json:"id" db:"id,pk"`
	Name string `json:"name" db:"name"`
	Code string `json:"code" db:"code"`
}

type Place

type Place struct {
	ID      uint64   `json:"id" db:"id,pk"`
	Kind    string   `json:"kind" db:"kind"`
	Name    string   `json:"name" db:"name"`
	Lat     float64  `json:"lat" db:"lat"`
	Lng     float64  `json:"lng" db:"lng"`
	Country *Country `json:"country" db:"country"`
}

type Venue

type Venue struct {
	UUID    uuid.UUID `json:"uuid" db:"uuid,pk"`
	Name    string    `json:"name" db:"name"`
	Active  bool      `json:"active" db:"active"`
	Street  string    `json:"street" db:"street"`
	Zip     string    `json:"zip" db:"zip"`
	Unit    string    `json:"unit" db:"unit"`
	City    *City     `json:"city" db:"city"`
	Country *Country  `json:"country" db:"country"`
}

Jump to

Keyboard shortcuts

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