fix(pkg/logfile): description for exported functions

This commit is contained in:
Markus Pesch 2019-06-15 15:49:21 +02:00
parent 5f859139a4
commit 05cd62c624
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -74,6 +74,8 @@ func ReadTemperatures(temperatureLogfile string) ([]*types.Temperature, error) {
return temperatures, nil return temperatures, nil
} }
// ReadTemperaturesChannel reads temperatures from a channel until it is closed
// and returns the temperature.
func ReadTemperaturesChannel(temperatureChannel <-chan *types.Temperature) []*types.Temperature { func ReadTemperaturesChannel(temperatureChannel <-chan *types.Temperature) []*types.Temperature {
temperatures := make([]*types.Temperature, 0) temperatures := make([]*types.Temperature, 0)
for { for {