Documentation ¶
Index ¶
- Variables
- func CaptureBody(c *Context)
- func CorsHandler() macaron.Handler
- func DisableTracing(c *Context)
- func Logger() macaron.Handler
- func NodeReady() macaron.Handler
- func OrgMiddleware(multiTenant bool) macaron.Handler
- func RequestStats() macaron.Handler
- func RequireOrg() macaron.Handler
- func Tracer(tracer opentracing.Tracer) macaron.Handler
- type Context
- type LoggingResponseWriter
- type TracingResponseWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LogHeaders = false
)
Functions ¶
func CaptureBody ¶
func CaptureBody(c *Context)
func CorsHandler ¶
func CorsHandler() macaron.Handler
func DisableTracing ¶
func DisableTracing(c *Context)
func OrgMiddleware ¶
func OrgMiddleware(multiTenant bool) macaron.Handler
func RequestStats ¶
func RequestStats() macaron.Handler
RequestStats returns a middleware that tracks request metrics.
func RequireOrg ¶
func RequireOrg() macaron.Handler
func Tracer ¶
func Tracer(tracer opentracing.Tracer) macaron.Handler
Tracer returns a middleware that traces requests
Types ¶
type Context ¶
type Context struct { *macaron.Context OrgId uint32 Body io.ReadCloser }
type LoggingResponseWriter ¶ added in v1.0.0
type LoggingResponseWriter struct { macaron.ResponseWriter // contains filtered or unexported fields }
type TracingResponseWriter ¶
type TracingResponseWriter struct { macaron.ResponseWriter // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.