Documentation ¶
Index ¶
- func CaptureBody(c *models.Context)
- func GetContextHandler() macaron.Handler
- func IngestRateLimiter() macaron.Handler
- func RequestStats() macaron.Handler
- func RequireAdmin() macaron.Handler
- func RequirePublisher() macaron.Handler
- func RequireViewer() macaron.Handler
- func Tracer(componentName string) macaron.Handler
- type Api
- type TracingResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureBody ¶
func GetContextHandler ¶
func GetContextHandler() macaron.Handler
func IngestRateLimiter ¶
func IngestRateLimiter() macaron.Handler
func RequestStats ¶
func RequestStats() macaron.Handler
RequestStats returns a middleware that tracks request metrics.
func RequireAdmin ¶
func RequireAdmin() macaron.Handler
func RequirePublisher ¶
func RequirePublisher() macaron.Handler
func RequireViewer ¶
func RequireViewer() macaron.Handler
Types ¶
type Api ¶
type Api struct { Router *macaron.Macaron // contains filtered or unexported fields }
func (*Api) GenerateHandlers ¶
type TracingResponseWriter ¶
type TracingResponseWriter struct { macaron.ResponseWriter // contains filtered or unexported fields }
func (*TracingResponseWriter) Hijack ¶
func (rw *TracingResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
Click to show internal directories.
Click to hide internal directories.