middlewares

package
v1.1.0-beta.0...-dd8df1a Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ServerContextKey = "server"

ServerContextKey is the key to get server from gin.Context.

Variables

This section is empty.

Functions

func BootstrapChecker

func BootstrapChecker() gin.HandlerFunc

BootstrapChecker is a middleware to check if raft cluster is started.

func Redirector

func Redirector() gin.HandlerFunc

Redirector is a middleware to redirect the request to the right place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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