controllers

package
v0.0.0-...-0fb9981 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func (*Server) GetUnit

func (server *Server) GetUnit(w http.ResponseWriter, r *http.Request)

func (*Server) GetUnits

func (server *Server) GetUnits(w http.ResponseWriter, r *http.Request)

func (*Server) GetUnitsFiltered

func (server *Server) GetUnitsFiltered(w http.ResponseWriter, r *http.Request)

func (*Server) Home

func (server *Server) Home(w http.ResponseWriter, r *http.Request)

func (*Server) Initialize

func (server *Server) Initialize(Dbdriver, DbUser, DbPassword, DbPort, DbHost, DbName string)

func (*Server) Run

func (server *Server) Run(addr string)

Jump to

Keyboard shortcuts

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