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.
Click to show internal directories.
Click to hide internal directories.