Documentation ¶
Index ¶
- func GetURIParams(api *router.API, rawURL url.URL) url.Values
- func IsWildCardBackendPath(api *router.API) bool
- type Node
- type Route
- func (rt *Route) ClearAPI() error
- func (rt *Route) DeleteAPI(fullPath string, httpverb config.HTTPVerb) bool
- func (rt *Route) DeleteNode(fullPath string) bool
- func (rt *Route) FindAPI(fullPath string, httpverb config.HTTPVerb) (*router.API, bool)
- func (rt *Route) PutAPI(api router.API) error
- func (rt *Route) UpdateAPI(api router.API) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetURIParams ¶
GetURIParams returns the values retrieved from the rawURL
func IsWildCardBackendPath ¶
IsWildCardBackendPath checks whether the configured path of the upstream restful service contains parameters
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node defines the single method of the router configured API
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route defines the tree of router APIs
func (*Route) DeleteNode ¶
DeleteNode delete node by fullPath
Click to show internal directories.
Click to hide internal directories.