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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AggregateByDay ...
	AggregateByDay = "day"
	// AggregateByMonth ...
	AggregateByMonth = "month"
	// AggregateByYear ...
	AggregateByYear = "year"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContext

type BaseContext struct {
	RepositoryManager lib.RepositoryManager
	Logger            *logrus.Logger
	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) ServeJSON

func (bc *BaseContext) ServeJSON(rw web.ResponseWriter, result interface{})

ServeJSON ...

Jump to

Keyboard shortcuts

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