mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-25 14:41:26 +00:00
ad0f7a5305
Upgrade to Go 1.20.5, Hydra v2 SDK, rules-go v0.44.2 (with proper resolves), protobuf v25.3 and mass upgrade of Go dependencies.
21 lines
766 B
Go
21 lines
766 B
Go
package restful
|
|
|
|
// Copyright 2013 Ernest Micklei. All rights reserved.
|
|
// Use of this source code is governed by a license
|
|
// that can be found in the LICENSE file.
|
|
|
|
import "net/http"
|
|
|
|
// A RouteSelector finds the best matching Route given the input HTTP Request
|
|
// RouteSelectors can optionally also implement the PathProcessor interface to also calculate the
|
|
// path parameters after the route has been selected.
|
|
type RouteSelector interface {
|
|
|
|
// SelectRoute finds a Route given the input HTTP Request and a list of WebServices.
|
|
// It returns a selected Route and its containing WebService or an error indicating
|
|
// a problem.
|
|
SelectRoute(
|
|
webServices []*WebService,
|
|
httpRequest *http.Request) (selectedService *WebService, selected *Route, err error)
|
|
}
|