Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouterForMetrics ¶
func NewRouterForMetrics(e *echo.Echo, cfg *config.Config, app api_metrics.ServerInterface) *echo.Echo
NewRouterForMetrics fill the routing information for /metrics endpoint. e is the echo instance cfg is the router configuration 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, app handler.Application, metrics *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. c is the router configuration. metrics is the reference to the metrics storage. Return the echo instance set up; is something fails it panics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.