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, smsSigner keys.KeyManager, limiterStore limiter.Store, ) (http.Handler, error)
AdminAPI defines routes for the adminapi service.
func ENXRedirect ¶ added in v0.18.4
func ENXRedirect( ctx context.Context, cfg *config.RedirectConfig, db *database.Database, cacher cache.Cacher, smsSigner keys.KeyManager, limiterStore limiter.Store, ) (http.Handler, error)
ENXRedirect defines routes for the redirector service for ENX.
func Server ¶
func Server( ctx context.Context, cfg *config.ServerConfig, db *database.Database, authProvider auth.Provider, cacher cache.Cacher, certificateSigner keys.KeyManager, smsSigner keys.KeyManager, limiterStore limiter.Store, ) (http.Handler, error)
Server defines routes for the UI server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.