router

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartRouter

func StartRouter() (mux *http.ServeMux)

StartRouter() instantiates a new http.ServeMux and registers with it each endpoint that is currently being handled by the SkillDirectory REST API with an appropriate handler function for that endpoint. This http.ServeMux is returned.

Types

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route contains an HTTP URI endpoint (e.g. "/skills" or "/skills/") in the 'path' var, and the handler function with which to handle HTTP requests to that endpoint in the 'handlerFunc' var.

Jump to

Keyboard shortcuts

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