Documentation ¶
Overview ¶
Package routes defines the routing for services. It's in a central package so it can be shared among tests.
Index ¶
- func APIServer(ctx context.Context, cfg *config.APIServerConfig, db *database.Database, ...) (http.Handler, func(), error)
- func AdminAPI(ctx context.Context, cfg *config.AdminAPIServerConfig, db *database.Database, ...) (http.Handler, error)
- func ENXRedirect(ctx context.Context, cfg *config.RedirectConfig, db *database.Database, ...) (http.Handler, error)
- func Server(ctx context.Context, cfg *config.ServerConfig, db *database.Database, ...) (http.Handler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIServer ¶ added in v0.19.0
func APIServer( ctx context.Context, cfg *config.APIServerConfig, db *database.Database, cacher cache.Cacher, limiterStore limiter.Store, tokenSigner keys.KeyManager, certificateSigner keys.KeyManager, ) (http.Handler, func(), error)
APIServer defines routes for the apiserver service.
func AdminAPI ¶ added in v0.19.0
func AdminAPI( ctx context.Context, cfg *config.AdminAPIServerConfig, db *database.Database, cacher cache.Cacher, limiterStore limiter.Store, ) (http.Handler, error)
AdminAPI defines routes for the adminapi service.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.