Documentation ¶
Overview ¶
Package worker provides the worker for FaaSController.
Index ¶
- type Worker
- func (worker *Worker) Close()
- func (worker *Worker) Create(w http.ResponseWriter, r *http.Request)
- func (worker *Worker) Delete(w http.ResponseWriter, r *http.Request)
- func (worker *Worker) Get(w http.ResponseWriter, r *http.Request)
- func (worker *Worker) List(w http.ResponseWriter, r *http.Request)
- func (worker *Worker) Lock() error
- func (worker *Worker) Start(w http.ResponseWriter, r *http.Request)
- func (worker *Worker) Stop(w http.ResponseWriter, r *http.Request)
- func (worker *Worker) Unlock()
- func (worker *Worker) UnregisterAPIs()
- func (worker *Worker) Update(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker stores the worker information
func (*Worker) Close ¶
func (worker *Worker) Close()
Close closes the Egress HTTPServer and Pipelines
func (*Worker) Create ¶
func (worker *Worker) Create(w http.ResponseWriter, r *http.Request)
Create deals with HTTP POST method
func (*Worker) Delete ¶
func (worker *Worker) Delete(w http.ResponseWriter, r *http.Request)
Delete deals with HTTP DELETE
func (*Worker) Get ¶
func (worker *Worker) Get(w http.ResponseWriter, r *http.Request)
Get deals with HTTP GET method request
func (*Worker) List ¶
func (worker *Worker) List(w http.ResponseWriter, r *http.Request)
List deals with HTTP GET method
func (*Worker) Start ¶
func (worker *Worker) Start(w http.ResponseWriter, r *http.Request)
Start is a start API which deals with HTTP PUT method
func (*Worker) Stop ¶
func (worker *Worker) Stop(w http.ResponseWriter, r *http.Request)
Stop is a stop API which deals with HTTP PUT method
func (*Worker) UnregisterAPIs ¶
func (worker *Worker) UnregisterAPIs()
UnregisterAPIs unregister APIs
Click to show internal directories.
Click to hide internal directories.