server

package
v0.0.0-...-dca6c44 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(sql *db.FusionDAO) *mux.Router

NewRouter creates a new http router

Types

type Route

type Route struct {
	Name    string
	Method  string
	Pattern string
	Handler http.Handler
}

Route enforces the structure of a route

type Routes

type Routes []Route

Routes is a collection of route structs

Jump to

Keyboard shortcuts

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