Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterTestsByStatus ¶
func FilterTestsByStatus(tests []*m.TestDocument, status string) []*m.TestDocument
Types ¶
type AttachmentHandler ¶
type AttachmentHandler struct {
// contains filtered or unexported fields
}
AttachmentHandler handles attachment retrieval endpoints
func NewAttachmentHandler ¶
func NewAttachmentHandler(repo *repository.MongoRepository, storageDriver storage.Driver, logger *slog.Logger) *AttachmentHandler
NewAttachmentHandler creates a new attachment handler
func (*AttachmentHandler) RegisterRoutes ¶
func (h *AttachmentHandler) RegisterRoutes(mux *http.ServeMux)
RegisterRoutes registers attachment-related routes
type MongoHandler ¶
type MongoHandler struct {
// contains filtered or unexported fields
}
MongoHandler provides REST API endpoints for the Observer service using MongoDB
func NewMongoHandler ¶
func NewMongoHandler(repo *repository.MongoRepository, logger *slog.Logger) *MongoHandler
NewMongoHandler creates a new MongoDB REST API handler
func (*MongoHandler) RegisterRoutes ¶
func (h *MongoHandler) RegisterRoutes(mux *http.ServeMux)
RegisterRoutes registers all REST API routes on the provided mux
func (*MongoHandler) SetRawMessageRepo ¶ added in v0.1.1
func (h *MongoHandler) SetRawMessageRepo(r *repository.RawMessageRepository)
SetRawMessageRepo attaches an optional raw message repository so that the handler can serve GET /api/runs/{runId}/raw-messages requests. When nil (default), the endpoint returns 404.
Click to show internal directories.
Click to hide internal directories.