internal/api/reportcandidates.go
internal/api · 60 lines · 3 declarations · source
Declarations
type reportCandidateRequest
type reportCandidateRequest struct {
Question string `json:"question"`
Limit *int `json:"limit,omitempty"`
Candidates int `json:"candidates,omitempty"`
}
method Server.searchReportCandidates
func (s *Server) searchReportCandidates(w http.ResponseWriter, r *http.Request, grant credential.Grant)
method Server.reportCandidateError
func (s *Server) reportCandidateError(w http.ResponseWriter, r *http.Request, grant credential.Grant, err error)