route

package
Version: v0.0.0-...-93a054a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() http.Handler

Load returns the routes and middleware

func LoadHTTP

func LoadHTTP() http.Handler

LoadHTTP returns the HTTPS routes and middleware

func LoadHTTPS

func LoadHTTPS() http.Handler

LoadHTTPS returns the HTTP routes and middleware

Types

type HostSwitch

type HostSwitch map[string]http.Handler

HostSwitch map It is used to serve multiple domains with different routing.

func (HostSwitch) ServeHTTP

func (hs HostSwitch) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP method for HostSwitch

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL