Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeSuccess = 0 CodeBadRequest = 40000 CodeForbidden = 40300 CodeNotFound = 40400 CodeConflict = 40900 CodeInternalError = 50000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminHandler ¶
type AdminHandler struct {
// contains filtered or unexported fields
}
func NewAdminHandler ¶
func NewAdminHandler(provider *config.Provider, restartCh chan<- struct{}, stopCh chan<- struct{}) *AdminHandler
func (*AdminHandler) RegisterRoutes ¶
func (a *AdminHandler) RegisterRoutes(r *gin.RouterGroup)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(provider *config.Provider, usageStore *store.UsageStore, r router.Router, trace *hook.TraceRecorder) *Handler
func (*Handler) RegisterHook ¶ added in v0.1.9
RegisterHook adds a lifecycle hook to the pipeline.
func (*Handler) RegisterRoutes ¶
RegisterRoutes registers all API endpoints.
type ModelInfo ¶ added in v0.1.7
ModelInfo represents a single model returned by the fetch-models endpoint.
type TraceHandler ¶ added in v0.1.9
type TraceHandler struct {
// contains filtered or unexported fields
}
TraceHandler provides REST API endpoints for querying JSONL trace files.
func NewTraceHandler ¶ added in v0.1.9
func NewTraceHandler(dataDir string) *TraceHandler
NewTraceHandler creates a new TraceHandler with the given data directory.
func (*TraceHandler) RegisterRoutes ¶ added in v0.1.9
func (t *TraceHandler) RegisterRoutes(r *gin.RouterGroup)
RegisterRoutes registers trace API routes on the given router group.
Click to show internal directories.
Click to hide internal directories.