diff options
author | Valery Piashchynski <[email protected]> | 2021-06-30 11:08:40 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-30 11:08:40 +0300 |
commit | 2ac3b240b118961c1a30cc18dd22d08b7fac6516 (patch) | |
tree | 25f48908286a05ea78e4049d89f88450d0541f99 /plugins/informer | |
parent | c0f808bb8c7077e18aa197f024628b9912def58b (diff) |
- Update arch diagrams
- Update ephemeral plugin
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/informer')
-rw-r--r-- | plugins/informer/rpc.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/informer/rpc.go b/plugins/informer/rpc.go index 3925ef64..f096a0af 100644 --- a/plugins/informer/rpc.go +++ b/plugins/informer/rpc.go @@ -38,3 +38,17 @@ func (rpc *rpc) Workers(service string, list *WorkerList) error { return nil } + +// sort.Sort + +func (w *WorkerList) Len() int { + return len(w.Workers) +} + +func (w *WorkerList) Less(i, j int) bool { + return w.Workers[i].Pid < w.Workers[j].Pid +} + +func (w *WorkerList) Swap(i, j int) { + w.Workers[i], w.Workers[j] = w.Workers[j], w.Workers[i] +} |