Documentation
¶
Overview ¶
Package server builds Site Manager's Echo server and serves it over TLS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSiteManagerServer ¶
func InitSiteManagerServer(metricsNamespace string, systemRoutes, siteRoutes []api.Route) *echo.Echo
InitSiteManagerServer returns Site Manager's Echo instance with its middleware and routes. Metric names start with metricsNamespace. Requests to siteRoutes are logged. Requests to systemRoutes, such as probes and scrapes, aren't.
func ServeTLS ¶
func ServeTLS(ctx context.Context, e *echo.Echo, addr, certFile, keyFile string) (net.Listener, error)
ServeTLS binds addr and serves e over TLS in the background until ctx is canceled. Then it drains for shutdownGracePeriod. It returns the bound listener, so callers can learn the port when addr is ":0".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.