Documentation ¶
Overview ¶
Package server provides a generic server implementation which is used by the different applications to serve their build info, health status and API.
Index ¶
Constants ¶
View Source
const ( BuildInfoRoute = buildinfo.MetricName HealthCheckRoute = "healthcheck" PrometheusMetricsRoute = "prometheus-metrics" ErrInvalidPrometheusPath errors.Msg = "invalid prometheus path" ConfigValidationError = youlessclient.ConfigValidationError )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithBuildInfo ¶
func WithRoutes ¶
func WithRoutes(r serv.RoutesRegisterer) Option
func WithTelemetry ¶
func WithTelemetryAndPrometheus ¶
func WithTelemetryAndPrometheus(tc telemetry.Config, pc PrometheusConfig) Option
type PrometheusConfig ¶
func (PrometheusConfig) Validate ¶
func (c PrometheusConfig) Validate() error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) MeterProvider ¶
func (app *Server) MeterProvider() telemetry.MeterProvider
func (*Server) TracerProvider ¶
func (app *Server) TracerProvider() telemetry.TracerProvider
Click to show internal directories.
Click to hide internal directories.