Skip to main content

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

source

method Server.searchEntityCandidates

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

source

method Server.entityCandidateError

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

source