routes

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package routes defines the routing for services. It's in a central package so it can be shared among tests.

Index

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.

Jump to

Keyboard shortcuts

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