controllers

package
Version: v0.0.0-...-7740740 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 14 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) CreatePotato

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

func (*Server) DeletePotato

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

func (*Server) GetPotato

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

func (*Server) GetPotatoes

func (server *Server) GetPotatoes(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)

func (*Server) UpdatePotato

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL