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 ...
Click to show internal directories.
Click to hide internal directories.