MCPcopy Create free account
hub / github.com/convox/rack / ProcessStop

Method ProcessStop

pkg/api/controllers.go:854–868  ·  view source on GitHub ↗
(c *stdapi.Context)

Source from the content-addressed store, hash-verified

852}
853
854func (s *Server) ProcessStop(c *stdapi.Context) error {
855 if err := s.hook("ProcessStopValidate", c); err != nil {
856 return err
857 }
858
859 app := c.Var("app")
860 pid := c.Var("pid")
861
862 err := s.provider(c).WithContext(c.Context()).ProcessStop(app, pid)
863 if err != nil {
864 return err
865 }
866
867 return c.RenderOK()
868}
869
870func (s *Server) Proxy(c *stdapi.Context) error {
871 if err := s.hook("ProxyValidate", c); err != nil {

Callers

nothing calls this directly

Calls 5

hookMethod · 0.95
providerMethod · 0.95
ContextMethod · 0.80
ProcessStopMethod · 0.65
WithContextMethod · 0.65

Tested by

no test coverage detected