mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Adds extension points for runner pools in load-balanced mode (Patch 1/2) (#851)
* adds extension points for runner pools in load-balanced mode * adds error to return values in RunnerPool and Runner interfaces
This commit is contained in:
@@ -38,6 +38,9 @@ type ExtServer interface {
|
||||
// AddRouteEndpoint adds an endpoints to /v1/apps/:app/routes/:route/x
|
||||
AddRouteEndpointFunc(method, path string, handler func(w http.ResponseWriter, r *http.Request, app *models.App, route *models.Route))
|
||||
|
||||
// WithRunnerPool overrides the default runner pool implementation when running in load-balanced mode
|
||||
WithRunnerPool(runnerPool models.RunnerPool)
|
||||
|
||||
// Datastore returns the Datastore Fn is using
|
||||
Datastore() models.Datastore
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user