Documentation ¶
Index ¶
- type Scheduler
- func (s *Scheduler) AddWorkers(urls []url.URL)
- func (s *Scheduler) GetLambdaInfoFromRequest(r *http.Request) (*lambda.Lambda, *httputil.HttpError)
- func (s *Scheduler) RemoveWorkers(urls []url.URL)
- func (s *Scheduler) RunLambda(w http.ResponseWriter, r *http.Request)
- func (s *Scheduler) StatusCheckAllWorkers(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is an object that can schedule lambda function workloads to a pool of workers.
func NewScheduler ¶
func (*Scheduler) AddWorkers ¶
func (*Scheduler) GetLambdaInfoFromRequest ¶
func (*Scheduler) RemoveWorkers ¶
func (*Scheduler) RunLambda ¶
func (s *Scheduler) RunLambda(w http.ResponseWriter, r *http.Request)
RunLambda is an HTTP request handler that expects requests of form /runLambda/<lambdaName>. It extracts the lambda name from the request path and then chooses a worker to run the lambda workload using the configured load balancer. The lambda response is forwarded to the client "as-is" without any modifications.
func (*Scheduler) StatusCheckAllWorkers ¶
func (s *Scheduler) StatusCheckAllWorkers(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.