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