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: 0

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