Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricsRouter ¶
func NewMetricsRouter(e *echo.Echo, cfg *config.Config, h metrics_handler.ServerInterface) *echo.Echo
NewMetricsRouter fill the routing information for /metrics endpoint. e is the echo instance cfg is the router configuration h is the handler to retrieve the metrics. Return the echo instance configured for the metrics for success execution, else raise any panic.
func NewRouterWithConfig ¶
func NewRouterWithConfig(e *echo.Echo, cfg *config.Config, public *openapi3.T, h handler.Application, m *metrics.Metrics) *echo.Echo
NewRouterWithConfig fill the router configuration for the given echo instance, providing routes for the public endpoints, the private paths (includes the healthcheck), and the /metrics path e is the echo instance where to add the routes. cfg is the application configuration. public is the openapi specification. h is the application handler. m is the reference to the metrics storage. Return the echo instance set up; is something fails it panics.