worker

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 woker information

func NewWorker

func NewWorker(superSpec *supervisor.Spec) *Worker

NewWorker return a worker

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) Lock

func (worker *Worker) Lock()

Lock locks the cluster store.

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) Unlock

func (worker *Worker) Unlock()

Unlock unlocks the cluster store.

func (*Worker) UnregisterAPIs added in v1.1.0

func (worker *Worker) UnregisterAPIs()

UnregisterAPIs unregister APIs

func (*Worker) Update

func (worker *Worker) Update(w http.ResponseWriter, r *http.Request)

Update deals with HTTP PUT method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL