Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsServiceAllowed ¶
func IsServiceAllowed(s *server.Server, group apiutil.APIServiceGroup) bool
IsServiceAllowed checks the service through the path.
func NewRedirector ¶
func NewRedirector(s *server.Server, opts ...RedirectorOption) negroni.Handler
NewRedirector redirects request to the leader if needs to be handled in the leader.
func NewRuntimeServiceValidator ¶
NewRuntimeServiceValidator checks if the path is invalid.
Types ¶
type RedirectorOption ¶
type RedirectorOption func(*redirector)
RedirectorOption defines the option of redirector
func MicroserviceRedirectRule ¶
func MicroserviceRedirectRule(matchPath, targetPath, targetServiceName string, methods []string, filters ...func(*http.Request) bool) RedirectorOption
MicroserviceRedirectRule new a microservice redirect rule option
Click to show internal directories.
Click to hide internal directories.