handler

package
v0.0.0-...-183bbd4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

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

Types

type AnswerHandler

type AnswerHandler struct {
	AnswerService service.AnswerService
}

func NewAnswerHandler

func NewAnswerHandler(service service.AnswerService) *AnswerHandler

func (AnswerHandler) CreateAnswerHandler

func (h AnswerHandler) CreateAnswerHandler(w http.ResponseWriter, r *http.Request)

New Answer

func (AnswerHandler) DeleteAnswerHandler

func (h AnswerHandler) DeleteAnswerHandler(w http.ResponseWriter, r *http.Request)

Delete Answer

func (AnswerHandler) GetAllAnswersHandler

func (h AnswerHandler) GetAllAnswersHandler(w http.ResponseWriter, r *http.Request)

All Answers

func (AnswerHandler) GetAnswerAuthorHandler

func (h AnswerHandler) GetAnswerAuthorHandler(w http.ResponseWriter, r *http.Request)

Answer Author

func (AnswerHandler) GetAnswerHandler

func (h AnswerHandler) GetAnswerHandler(w http.ResponseWriter, r *http.Request)

Single Answer

func (AnswerHandler) GetAnswerQuestionHandler

func (h AnswerHandler) GetAnswerQuestionHandler(w http.ResponseWriter, r *http.Request)

Answer Questions

func (AnswerHandler) UpdateAnswerHandler

func (h AnswerHandler) UpdateAnswerHandler(w http.ResponseWriter, r *http.Request)

Update Answer

type AuthHandler

type AuthHandler struct {
	AuthService service.AuthService
}

func NewAuthHandler

func NewAuthHandler(service service.AuthService) *AuthHandler

func (AuthHandler) LoginHandler

func (h AuthHandler) LoginHandler(w http.ResponseWriter, r *http.Request)

Login Handler

type QuestionHandler

type QuestionHandler struct {
	QuestionService service.QuestionService
}

func NewQuestionHandler

func NewQuestionHandler(service service.QuestionService) *QuestionHandler

func (QuestionHandler) CreateQuestionHandler

func (h QuestionHandler) CreateQuestionHandler(w http.ResponseWriter, r *http.Request)

New Question

func (QuestionHandler) DeleteQuestionHandler

func (h QuestionHandler) DeleteQuestionHandler(w http.ResponseWriter, r *http.Request)

Delete Question

func (QuestionHandler) GetAllQuestionsHandler

func (h QuestionHandler) GetAllQuestionsHandler(w http.ResponseWriter, r *http.Request)

All Questions

func (QuestionHandler) GetQuestionAnswersHandler

func (h QuestionHandler) GetQuestionAnswersHandler(w http.ResponseWriter, r *http.Request)

Question Answers

func (QuestionHandler) GetQuestionAuthorHandler

func (h QuestionHandler) GetQuestionAuthorHandler(w http.ResponseWriter, r *http.Request)

Question Author

func (QuestionHandler) GetQuestionHandler

func (h QuestionHandler) GetQuestionHandler(w http.ResponseWriter, r *http.Request)

Single Question

func (QuestionHandler) GetQuestionTagsHandler

func (h QuestionHandler) GetQuestionTagsHandler(w http.ResponseWriter, r *http.Request)

Question Tags

func (QuestionHandler) UpdateQuestionHandler

func (h QuestionHandler) UpdateQuestionHandler(w http.ResponseWriter, r *http.Request)

Update Question

type TagHandler

type TagHandler struct {
	TagService service.TagService
}

func NewTagHandler

func NewTagHandler(service service.TagService) *TagHandler

func (TagHandler) DeleteTagHandler

func (h TagHandler) DeleteTagHandler(w http.ResponseWriter, r *http.Request)

Delete Tag

func (TagHandler) GetAllTagsHandler

func (h TagHandler) GetAllTagsHandler(w http.ResponseWriter, r *http.Request)

All Tags

func (TagHandler) GetTagHandler

func (h TagHandler) GetTagHandler(w http.ResponseWriter, r *http.Request)

Single Tag

func (TagHandler) GetTagQuestionHandler

func (h TagHandler) GetTagQuestionHandler(w http.ResponseWriter, r *http.Request)

Tag Questions

func (TagHandler) UpdateTagHandler

func (h TagHandler) UpdateTagHandler(w http.ResponseWriter, r *http.Request)

Update Tag

type UserHandler

type UserHandler struct {
	UserService service.UserService
}

func NewUserHandler

func NewUserHandler(service service.UserService) *UserHandler

func (UserHandler) CreateUserHandler

func (h UserHandler) CreateUserHandler(w http.ResponseWriter, r *http.Request)

New user

func (UserHandler) DeleteUserHandler

func (h UserHandler) DeleteUserHandler(w http.ResponseWriter, r *http.Request)

Delete user

func (UserHandler) GetAllUsersHandler

func (h UserHandler) GetAllUsersHandler(w http.ResponseWriter, r *http.Request)

All users

func (UserHandler) GetUserAnswersHandler

func (h UserHandler) GetUserAnswersHandler(w http.ResponseWriter, r *http.Request)

User answers

func (UserHandler) GetUserHandler

func (h UserHandler) GetUserHandler(w http.ResponseWriter, r *http.Request)

Single user

func (UserHandler) GetUserQuestionsHandler

func (h UserHandler) GetUserQuestionsHandler(w http.ResponseWriter, r *http.Request)

User questions

func (UserHandler) UpdateUserHandler

func (h UserHandler) UpdateUserHandler(w http.ResponseWriter, r *http.Request)

Update user

Jump to

Keyboard shortcuts

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