Discover Packages
github.com/dpl10/monographia-server
model
package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Sep 20, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type City struct {
CityID int `json:"id" db:"CityID"`
City string `json:"City" db:"City"`
Hash string `json:"Hash" db:"Hash"`
}
City data
type Model struct {
DB *sqlx .DB
}
Model passes database connection pool
NewModel creates an echo handler with access to the database connection pool
SelectCities database query
type Nut struct {
Nut string `json:"Nut"`
Pagnut string `json:"Pagnut"`
Expiration int `json:"Expiration"`
}
Nut data
Source Files
¶
Click to show internal directories.
Click to hide internal directories.