Documentation
¶
Overview ¶
Package api provides an HTTP API server for hawk, consumable by SDKs.
Index ¶
Constants ¶
View Source
const Version = "0.4.0"
Version is the current hawk API version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatRequest ¶
ChatRequest is the request body for POST /chat.
type ChatResponse ¶
type ChatResponse struct {
Response string `json:"response"`
}
ChatResponse is the response body for POST /chat.
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
}
HealthResponse is the response body for GET /health.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the HTTP API server for hawk.
type VersionResponse ¶
type VersionResponse struct {
Version string `json:"version"`
}
VersionResponse is the response body for GET /version.
Click to show internal directories.
Click to hide internal directories.