middlewares

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheckMiddleware

func HealthCheckMiddleware(next http.Handler) http.Handler

HealthCheckHandler provides the GET /healthcheck endpoint.

func Logging added in v1.0.0

func NewAuditController

func NewAuditController() *auditController

func NewQuotaController

func NewQuotaController(db *sqlx.DB) *quotaController

func Recoverer added in v1.0.1

func Recoverer(next stormrpc.HandlerFunc) stormrpc.HandlerFunc

Recoverer is a stormrpc middleware that recovers from panics and sends them to Sentry.

func Tracing added in v1.0.1

func Tracing(httpRequestHistogram *prometheus.HistogramVec) func(next stormrpc.HandlerFunc) stormrpc.HandlerFunc

Tracing is a stormrpc middleware that records the duration of the request.

Types

type AuditResource

type AuditResource struct {
	// contains filtered or unexported fields
}

AuditResource is an audittools.EventRenderer.

func (AuditResource) Render

func (a AuditResource) Render() cadf.Resource

Render implements the audittools.EventRenderer interface.

Jump to

Keyboard shortcuts

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