subdomain

package module
v0.0.0-...-c79a282 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 4 Imported by: 0

README

subdomain

An extension for chi utilizing subdomain routing

Examples

soon

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Routes

type Routes struct{ hostrouter.Routes }

Routes embeds github.com/go-chi/hostrouter's Routes

func New

func New() Routes

New creates an instance

func (Routes) Map

func (sr Routes) Map(subdomain string, h chi.Router)

Map maps subdomains to their routers

func (Routes) ServeHTTP

func (sr Routes) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the http.Handler interface

Jump to

Keyboard shortcuts

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