Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitServices ¶
func Routes ¶ added in v3.15.0
func Routes(services map[string]global.Service, counters map[string]*activity.Counter, log *zerolog.Logger) *router.Router
Routes builds the router that serves the given services. Every service declares absolute patterns on it, so a request is matched once, against the whole server: there is no per-service prefix stripping, and two services claiming the same URL is a startup panic rather than a silent shadowing.
counters, keyed by service name, are fed by the routes of that service.
Types ¶
type Config ¶
type Config func(*Server)
func WithCertAndKeyFiles ¶
func WithLogger ¶
func WithMiddlewares ¶
func WithMiddlewares(middlewares []global.Middleware) Config
func WithRouter ¶ added in v3.15.0
WithRouter sets the router serving the server's services, as built by Routes.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package datatx provides a library to abstract the complexity of using various data transfer protocols.
|
Package datatx provides a library to abstract the complexity of using various data transfer protocols. |
|
utils/download
Package download provides a library to handle file download requests.
|
Package download provides a library to handle file download requests. |
|
Package ratelimit provides a per-client token-bucket HTTP middleware, meant for unauthenticated endpoints that trigger outbound requests or other expensive work (e.g.
|
Package ratelimit provides a per-client token-bucket HTTP middleware, meant for unauthenticated endpoints that trigger outbound requests or other expensive work (e.g. |
|
Package router is the HTTP routing API reva services use to declare the URLs they serve.
|
Package router is the HTTP routing API reva services use to declare the URLs they serve. |