rest

package
v0.0.0-...-ad498cf Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 15 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) CreateGroup

func (s *Server) CreateGroup(w http.ResponseWriter, r *http.Request)

func (*Server) CreateQuestion

func (s *Server) CreateQuestion(w http.ResponseWriter, r *http.Request)

func (*Server) CreateTest

func (s *Server) CreateTest(w http.ResponseWriter, r *http.Request)

func (*Server) CreateUser

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

func (*Server) DeleteGroup

func (s *Server) DeleteGroup(w http.ResponseWriter, r *http.Request)

func (*Server) DeleteQuestion

func (s *Server) DeleteQuestion(w http.ResponseWriter, r *http.Request)

func (*Server) DeleteTest

func (s *Server) DeleteTest(w http.ResponseWriter, r *http.Request)

func (*Server) DeleteUser

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

func (*Server) GetGroup

func (s *Server) GetGroup(w http.ResponseWriter, r *http.Request)

func (*Server) GetGroups

func (s *Server) GetGroups(w http.ResponseWriter, r *http.Request)

func (*Server) GetQuestion

func (s *Server) GetQuestion(w http.ResponseWriter, r *http.Request)

func (*Server) GetQuestions

func (s *Server) GetQuestions(w http.ResponseWriter, r *http.Request)

func (*Server) GetTest

func (s *Server) GetTest(w http.ResponseWriter, r *http.Request)

func (*Server) GetTests

func (s *Server) GetTests(w http.ResponseWriter, r *http.Request)

func (*Server) GetUser

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

func (*Server) GetUsers

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

func (*Server) Index

func (s *Server) Index(w http.ResponseWriter, r *http.Request)

func (*Server) Initialize

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

func (*Server) Login

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

func (*Server) Start

func (s *Server) Start(addr string, r *mux.Router)

func (*Server) UpdateGroup

func (s *Server) UpdateGroup(w http.ResponseWriter, r *http.Request)

func (*Server) UpdateQuestion

func (s *Server) UpdateQuestion(w http.ResponseWriter, r *http.Request)

func (*Server) UpdateTest

func (s *Server) UpdateTest(w http.ResponseWriter, r *http.Request)

func (*Server) UpdateUser

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

func (*Server) UsersToken

func (s *Server) UsersToken(email, password string) (string, error)

Jump to

Keyboard shortcuts

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