answers

package
v0.0.0-...-59b6e81 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerController

type AnswerController struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(answerRepository repository.AnswerRepository,
	questionRepository questionRepository.QuestionRepository) AnswerController

func (AnswerController) Create

func (ac AnswerController) Create(w http.ResponseWriter, r *http.Request)

func (AnswerController) GetMyAnswers

func (ac AnswerController) GetMyAnswers(w http.ResponseWriter, r *http.Request)

func (AnswerController) GetQuestionsAnswers

func (ac AnswerController) GetQuestionsAnswers(w http.ResponseWriter, r *http.Request)

func (AnswerController) SetAnswered

func (ac AnswerController) SetAnswered(w http.ResponseWriter, r *http.Request)

func (AnswerController) Update

func (ac AnswerController) Update(w http.ResponseWriter, r *http.Request)

type Request

type Request struct {
	UpdateRequest
	QuestionID string `json:"question_id"`
}

type UpdateRequest

type UpdateRequest struct {
	Answer string `json:"answer"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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