From a62f04fa7ebd2e8b0fe50db781f01d9ffde82417 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 1 Aug 2021 15:47:55 -0400 Subject: [PATCH] docs: add godoc --- plugins/ps/ps.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/ps/ps.go b/plugins/ps/ps.go index 9d524c109..8b2ecddcf 100644 --- a/plugins/ps/ps.go +++ b/plugins/ps/ps.go @@ -24,13 +24,15 @@ var ( } ) -type FormationSlice []*Formation - +// Formation contains scaling information for a given process type type Formation struct { ProcessType string `json:"process_type"` Quantity int `json:"quantity"` } +// FormationSlice contains a slice of Formations that can be sorted +type FormationSlice []*Formation + func (d FormationSlice) Len() int { return len(d) }