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