api

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL