gin

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrainModeMiddleware

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

DrainModeMiddleware prevents write operations from succeeding.

func NewDrainModeMiddleware

func NewDrainModeMiddleware(basePath string, drainModeMetric prometheus.Gauge, errorHandler emperror.Handler) *DrainModeMiddleware

NewDrainModeMiddleware returns a new DrainModeMiddleware instance.

func (*DrainModeMiddleware) Middleware

func (m *DrainModeMiddleware) Middleware(c *gin.Context)

Middleware implements the gin handler for this middleware.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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