Skip to main content

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"`
}

source

method Server.searchReportCandidates

func (s *Server) searchReportCandidates(w http.ResponseWriter, r *http.Request, grant credential.Grant)

source

method Server.reportCandidateError

func (s *Server) reportCandidateError(w http.ResponseWriter, r *http.Request, grant credential.Grant, err error)

source