controllers

package
v0.0.0-...-90f9a36 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2016 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainController

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

func NewMainController

func NewMainController(urlFetcher services.UrlFetcher, logger *log.Logger) MainController

func (*MainController) CrawlerHandler

func (mc *MainController) CrawlerHandler(responseWriter http.ResponseWriter, request *http.Request, parameters map[string]string)

func (*MainController) GetHandler

func (mc *MainController) GetHandler(responseWriter http.ResponseWriter, request *http.Request, parameters map[string]string)

func (*MainController) MethodNotAllowedHandler

func (mc *MainController) MethodNotAllowedHandler(
	responseWriter http.ResponseWriter,
	request *http.Request,
	methods map[string]httptreemux.HandlerFunc,
)

MethodNotAllowedHandler handles requests with path exists but the method isn't allowed

func (*MainController) NotFoundHandler

func (mc *MainController) NotFoundHandler(responseWriter http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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