ossobv / gocollect

Data collector using go, periodically posts json to a REST api
GNU General Public License v3.0
6 stars 1 forks source link

CollectAndPostData() should get a Struct as argument #32

Closed wdoekes closed 7 years ago

wdoekes commented 7 years ago

See: https://github.com/ossobv/gocollect/blob/88623131c626fafc84e113f65a9bbf25a28cfad4/gocollector/actions.go#L17

Instead of calling it with that many arguments, we should group arguments into one or more structs/types.