Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFunc ¶
type ClientFunc func(context.Context) (types.ConnectorClient, error)
ClientFunc is a function that returns a ConnectorClient.
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
Timestamp string `json:"timestamp"`
Details map[string]string `json:"details,omitempty"`
}
HealthResponse represents the JSON response for health check endpoints.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server manages the HTTP health check server lifecycle.
func NewServer ¶
func NewServer(cfg Config, clientFunc ClientFunc) *Server
NewServer creates a new health check server.
Click to show internal directories.
Click to hide internal directories.