server

package
v0.0.0-...-3332f53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL