server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tmpls = udocs.DefaultTemplateFiles() // TODO: figure out a better place for this...

Functions

This section is empty.

Types

type ContextHandlerFunc

type ContextHandlerFunc func(context.Context, http.ResponseWriter, *http.Request)

type Server

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

func New

func New(settings *config.Settings, dao storage.Dao) *Server

func (*Server) Handle

func (s *Server) Handle(method, path string, h ContextHandlerFunc)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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