v1

package
v0.0.0-...-fccd001 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2015 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContext

type BaseContext struct {
	RepositoryManager lib.RepositoryManager
	KafkaPublisher    *lib.KafkaPublisher
	Logger            *logrus.Logger
	GeoIP             *geoip2.Reader
	Response          interface{}
}

BaseContext contains common properties accross multiple handlers

func (*BaseContext) HTTPError

func (bc *BaseContext) HTTPError(rw web.ResponseWriter, err error, message string, code int)

HTTPError ...

func (*BaseContext) VisitsGETHandler

func (bc *BaseContext) VisitsGETHandler(w web.ResponseWriter, r *web.Request)

VisitsGETHandler ...

Jump to

Keyboard shortcuts

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