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:
Gerardo Viedma
2018-03-15 10:28:56 +00:00
committed by GitHub
parent 7df6863678
commit 6bc1220d8b
3 changed files with 41 additions and 0 deletions

View File

@@ -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
}