middleware

package
v0.0.0-...-15fa731 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2019 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureBody

func CaptureBody(c *Context)

func CorsHandler

func CorsHandler() macaron.Handler

func DisableTracing

func DisableTracing(c *Context)

func NodeReady

func NodeReady() macaron.Handler

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 TracingResponseWriter

type TracingResponseWriter struct {
	macaron.ResponseWriter
	// contains filtered or unexported fields
}

func (*TracingResponseWriter) Write

func (rw *TracingResponseWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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