routes

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: Apache-2.0 Imports: 30 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 ENXRedirect added in v0.18.4

func ENXRedirect(
	ctx context.Context,
	cfg *config.RedirectConfig,
	db *database.Database,
	cacher cache.Cacher,
) (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,
	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