Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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