Documentation
¶
Index ¶
- func DecodePayload(payload map[string]any, target any) error
- func WriteRequest(w io.Writer, request Request) error
- func WriteResponse(w io.Writer, response Response) error
- type Backend
- type CorpusDocumentPayload
- type EnsureCorpusPayload
- type Request
- type Response
- type SearchCorpusPayload
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CorpusDocumentPayload ¶
type EnsureCorpusPayload ¶
type EnsureCorpusPayload struct {
Key string `json:"key"`
Documents []CorpusDocumentPayload `json:"documents"`
}
type Request ¶
type Response ¶
type SearchCorpusPayload ¶
Click to show internal directories.
Click to hide internal directories.