server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 16 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// APIServerEnv is the loaded environment variables for the API server
	APIServerEnv *apiServerEnvironmentVariables
)

Functions

func NewRouter

func NewRouter() *mux.Router

NewRouter will create a router configured with all methods, names, paths, queries, and handlers which are defined in routes.go

func ParseAPIServerEnvironmentVariables

func ParseAPIServerEnvironmentVariables() error

ParseAPIServerEnvironmentVariables loads the environment variables into APIServerEnv

Types

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	Query       []string
	HandlerFunc http.HandlerFunc
}

Route defines a location in the router

Jump to

Keyboard shortcuts

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