Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BenchmarkHandler ¶ added in v0.4.0
type BenchmarkHandler struct {
// contains filtered or unexported fields
}
BenchmarkHandler serves the read-only benchmark API.
func NewBenchmarkHandler ¶ added in v0.4.0
func NewBenchmarkHandler(store BenchmarkStore) *BenchmarkHandler
NewBenchmarkHandler builds a benchmark API handler.
func (*BenchmarkHandler) RegisterRoutesWithMiddleware ¶ added in v0.4.0
func (h *BenchmarkHandler) RegisterRoutesWithMiddleware(mux *http.ServeMux, middleware func(http.Handler) http.Handler)
RegisterRoutesWithMiddleware registers benchmark routes with optional middleware.
type BenchmarkStore ¶ added in v0.4.0
type BenchmarkStore interface {
ListSuites(context.Context, benchmarks.BenchmarkRunFilters) ([]benchmarks.BenchmarkSuiteSummary, error)
ListTemplateScorecards(context.Context) ([]benchmarks.TemplateScorecard, error)
ListAgentScorecards(context.Context) ([]benchmarks.AgentScorecard, error)
ListSessions(context.Context, string, benchmarks.BenchmarkRunFilters) ([]benchmarks.BenchmarkSessionDetail, error)
GetSession(context.Context, string, string) (*benchmarks.BenchmarkSessionDetail, error)
ListRuns(context.Context, string, benchmarks.BenchmarkRunFilters) ([]benchmarks.BenchmarkRunSummary, error)
GetRun(context.Context, string, string) (*benchmarks.BenchmarkRunDetail, error)
GetComparison(context.Context, string, benchmarks.BenchmarkRunFilters) (*benchmarks.BenchmarkComparisonView, error)
}
BenchmarkStore provides the benchmark read methods required by the API.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the read-only task run API.
func NewHandler ¶
NewHandler builds an API handler bound to a persistence store.
func (*Handler) RegisterRoutes ¶
RegisterRoutes registers the task run API routes on the provided mux.
type Store ¶
type Store interface {
ListTaskRuns(ctx context.Context) ([]persistence.TaskRunSummary, error)
GetTaskRunEvents(ctx context.Context, runID string) ([]persistence.TaskRunEvent, error)
}
Store provides the persistence-backed projections required by the API.
Click to show internal directories.
Click to hide internal directories.