server

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server implements a simple HTTP server that provides health and readiness endpoints for the sync pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthServer

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

HealthServer provides health and readiness endpoints for the sync pipeline.

func NewHealthServer

func NewHealthServer(port int) *HealthServer

NewHealthServer creates a new health server on the given port.

func (*HealthServer) ReportSyncError

func (h *HealthServer) ReportSyncError(err error)

ReportSyncError records a failed sync.

func (*HealthServer) ReportSyncSuccess

func (h *HealthServer) ReportSyncSuccess()

ReportSyncSuccess records a successful sync.

func (*HealthServer) Start

func (h *HealthServer) Start(ctx context.Context) error

Start begins the HTTP server and blocks until ctx is cancelled.

Jump to

Keyboard shortcuts

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