MCPcopy
hub / github.com/vulcand/vulcand / deleteFrontend

Method deleteFrontend

api/api.go:266–272  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte)

Source from the content-addressed store, hash-verified

264}
265
266func (c *ProxyController) deleteFrontend(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte) (interface{}, error) {
267 log.Infof("Delete Frontend(id=%s)", params["id"])
268 if err := c.ng.DeleteFrontend(engine.FrontendKey{Id: params["id"]}); err != nil {
269 return nil, err
270 }
271 return Response{"message": "Frontend deleted"}, nil
272}
273
274func (c *ProxyController) upsertServer(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte) (interface{}, error) {
275 backendId := params["backendId"]

Callers

nothing calls this directly

Calls 2

InfofMethod · 0.80
DeleteFrontendMethod · 0.65

Tested by

no test coverage detected