middlewares

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 9 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