Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
type Mux ¶
type Mux interface {
Handler(r *http.Request) (h http.Handler, pattern string)
ServeHTTP(w http.ResponseWriter, r *http.Request)
}
Mux wraps a standard MUX as an interface
type Resolver ¶
type Resolver interface {
ServeHTTP(w http.ResponseWriter, r *http.Request) (bool, error)
Init(ctx context.Context, serverID string, rr routing.RouteRegistrar)
Stop()
}
func NewResolver ¶
func NewResolver() Resolver
NewResolver creates an http resolver; If rootOnNotFound is set, non-matching patterns will be rewritten to base path and resolver will be run against it
Click to show internal directories.
Click to hide internal directories.