gof

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

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

Go to latest
Published: Jan 26, 2016 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Router  *mux.Router
	Negroni *negroni.Negroni
	Render  *render.Render
}

func NewServer

func NewServer(options ...render.Options) *Server

func (*Server) Handle

func (this *Server) Handle(path string, handler http.Handler) *mux.Route

func (*Server) HandleFunc

func (this *Server) HandleFunc(path string, f func(http.ResponseWriter, *http.Request)) *mux.Route

router

func (*Server) Start

func (this *Server) Start(addr string)

func (*Server) StrictSlash

func (this *Server) StrictSlash(val bool) *mux.Router

func (*Server) Use

func (this *Server) Use(handler negroni.Handler)

middleware

func (*Server) UseFunc

func (this *Server) UseFunc(handlerFunc func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc))

func (*Server) UseHandler

func (this *Server) UseHandler(handler http.Handler)

func (*Server) UseHandlerFunc

func (this *Server) UseHandlerFunc(handlerFunc func(rw http.ResponseWriter, r *http.Request))

Jump to

Keyboard shortcuts

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