docs: add godoc

This commit is contained in:
Jose Diaz-Gonzalez
2021-08-01 15:47:55 -04:00
parent 1c98b48e5d
commit a62f04fa7e

View File

@@ -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)
}