app

package
v0.0.0-...-6eb7cd9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router *mux.Router
	DB     *gorm.DB
}

App has router and db instances

func (*App) Get

func (a *App) Get(path string, f func(w http.ResponseWriter, r *http.Request))

Get wraps the router for GET method

func (*App) GetAllCadastralTerritories

func (a *App) GetAllCadastralTerritories(w http.ResponseWriter, r *http.Request)

GetAllCadastralTerritories handlers to manage Cadastral Territory Data

func (*App) GetAllCities

func (a *App) GetAllCities(w http.ResponseWriter, r *http.Request)

GetAllCities handlers to manage City Data

func (*App) GetAllCityParts

func (a *App) GetAllCityParts(w http.ResponseWriter, r *http.Request)

GetAllCityParts handlers to manage City Part Data

func (*App) GetAllPlaces

func (a *App) GetAllPlaces(w http.ResponseWriter, r *http.Request)

GetAllPlaces handlers to manage Place Data

func (*App) GetAllStreets

func (a *App) GetAllStreets(w http.ResponseWriter, r *http.Request)

GetAllStreets handlers to manage Street Data

func (*App) GetCadastralTerritory

func (a *App) GetCadastralTerritory(w http.ResponseWriter, r *http.Request)

GetCadastralTerritory handlers to manage Cadastral Territory Data

func (*App) GetCity

func (a *App) GetCity(w http.ResponseWriter, r *http.Request)

GetCity handlers to manage City Data

func (*App) GetCityPart

func (a *App) GetCityPart(w http.ResponseWriter, r *http.Request)

GetCityPart handlers to manage City Part Data

func (*App) GetHealtStatus

func (a *App) GetHealtStatus(w http.ResponseWriter, r *http.Request)

GetHealtStatus retuns application status info

func (*App) GetPlace

func (a *App) GetPlace(w http.ResponseWriter, r *http.Request)

GetPlace handlers to manage Place Data

func (*App) GetStreet

func (a *App) GetStreet(w http.ResponseWriter, r *http.Request)

GetStreet handlers to manage Street Data

func (*App) Initialize

func (a *App) Initialize(config *config.Config)

Initialize application with predefined configuration

func (*App) Run

func (a *App) Run(host string)

Run the app on it's router

func (*App) SearchPlace

func (a *App) SearchPlace(w http.ResponseWriter, r *http.Request)

SearchPlace handler to get places by filter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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