mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 20:46:41 +00:00
Add documentation for scaling handler
- documents ScalingConfig and MakeScalingHandler Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
@ -141,7 +141,7 @@ func main() {
|
||||
ServiceQuery: alertHandler,
|
||||
}
|
||||
|
||||
functionProxy = handlers.MakeScalingHandler(faasHandlers.Proxy, faasHandlers.QueryFunction, scalingConfig)
|
||||
functionProxy = handlers.MakeScalingHandler(faasHandlers.Proxy, scalingConfig)
|
||||
}
|
||||
// r.StrictSlash(false) // This didn't work, so register routes twice.
|
||||
r.HandleFunc("/function/{name:[-a-zA-Z_0-9]+}", functionProxy)
|
||||
|
Reference in New Issue
Block a user