controllers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 17 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) CreateUser

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

func (*Server) CreateWine

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

func (*Server) DeleteUser

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

func (*Server) DeleteWine

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

func (*Server) GetUser

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

func (*Server) GetUsers

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

func (*Server) GetWine

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

func (*Server) GetWines

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

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

func (*Server) Run

func (server *Server) Run(addr string)

func (*Server) SignIn

func (server *Server) SignIn(email, password string) (string, error)

func (*Server) UpdateUser

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

func (*Server) UpdateWine

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

Jump to

Keyboard shortcuts

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