(c *stdapi.Context)
| 750 | } |
| 751 | |
| 752 | func (s *Server) ProcessGet(c *stdapi.Context) error { |
| 753 | if err := s.hook("ProcessGetValidate", c); err != nil { |
| 754 | return err |
| 755 | } |
| 756 | |
| 757 | app := c.Var("app") |
| 758 | pid := c.Var("pid") |
| 759 | |
| 760 | v, err := s.provider(c).WithContext(c.Context()).ProcessGet(app, pid) |
| 761 | if err != nil { |
| 762 | return err |
| 763 | } |
| 764 | |
| 765 | if vs, ok := interface{}(v).(Sortable); ok { |
| 766 | sort.Slice(v, vs.Less) |
| 767 | } |
| 768 | |
| 769 | return c.RenderJSON(v) |
| 770 | } |
| 771 | |
| 772 | func (s *Server) ProcessList(c *stdapi.Context) error { |
| 773 | if err := s.hook("ProcessListValidate", c); err != nil { |
nothing calls this directly
no test coverage detected