server

package
v0.3.4-rc.3 Latest Latest
Warning

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

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

Documentation

Overview

Package healthserver provides a simplified HTTP server for Fleet Intelligence metrics export. This server focuses only on health monitoring and metrics export, removing all management functionality like package management, control plane connectivity, fault injection, and plugin systems.

Index

Constants

View Source
const URLPathInjectFault = "/inject-fault"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a simplified health metrics exporter server

func New

func New(ctx context.Context, auditLogger log.AuditLogger, config *config.Config) (retServer *Server, retErr error)

New creates a new simplified health server for metrics export only

func (*Server) GetHealthExporter

func (s *Server) GetHealthExporter() exporter.Exporter

GetHealthExporter returns the health exporter instance (for offline mode access)

func (*Server) Stop

func (s *Server) Stop()

Stop gracefully stops the server

Jump to

Keyboard shortcuts

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