Versions in this module Expand all Collapse all v0 v0.2.1 May 18, 2024 Changes in this version type Option + func WithMetricsHandler(metricsHandler http.Handler) Option v0.1.1 Feb 4, 2024 v0.1.0 Jan 20, 2024 Changes in this version + const DOWN + const UP + var ErrInternal = errors.New("internal server error") + type NamedMonitor interface + Monitor func(ctx context.Context) error + Name func() string + type Option func(*Server) + func WithAddr(addr string) Option + func WithContext(ctx context.Context) Option + func WithLogger(logger *slog.Logger) Option + func WithNamedMonitors(monitors ...NamedMonitor) Option + type Server struct + func New(opts ...Option) *Server + func (s *Server) Close() error + func (s *Server) Run() error