controllers

package
v0.0.0-...-2d6e339 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 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 *httprouter.Router
}

func (*Server) CreateUser

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

func (*Server) DeleteUser

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

func (*Server) GetUser

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

func (*Server) GetUsers

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

func (*Server) Home

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

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, _ httprouter.Params)

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, ps httprouter.Params)

Jump to

Keyboard shortcuts

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