Documentation ¶
Index ¶
- Constants
- func IsServiceAllowed(s *server.Server, group server.ServiceGroup) bool
- func NewCustomReverseProxies(dialClient *http.Client, urls []url.URL) http.Handler
- func NewRedirector(s *server.Server) negroni.Handler
- func NewRuntimeServiceValidator(s *server.Server, group server.ServiceGroup) negroni.Handler
Constants ¶
View Source
const ( RedirectorHeader = "PD-Redirector" AllowFollowerHandle = "PD-Allow-follower-handle" FollowerHandle = "PD-Follwer-handle" )
HTTP headers.
Variables ¶
This section is empty.
Functions ¶
func IsServiceAllowed ¶
func IsServiceAllowed(s *server.Server, group server.ServiceGroup) bool
IsServiceAllowed checks the service through the path.
func NewCustomReverseProxies ¶
NewCustomReverseProxies returns the custom reverse proxies.
func NewRedirector ¶
NewRedirector redirects request to the leader if needs to be handled in the leader.
func NewRuntimeServiceValidator ¶
NewRuntimeServiceValidator checks if the path is invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.