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: 1

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