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.
Click to show internal directories.
Click to hide internal directories.