refact(pkg): adapt go dependancies

This commit is contained in:
2019-06-15 15:58:41 +02:00
parent 05cd62c624
commit 518855bedf
25 changed files with 47 additions and 54 deletions

View File

@ -5,9 +5,9 @@ import (
"io"
"text/tabwriter"
"github.com/volker-raschek/flucky/pkg/config"
"github.com/volker-raschek/flucky/pkg/internal/temperature"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/go-flucky/flucky/pkg/config"
"github.com/go-flucky/flucky/pkg/internal/temperature"
"github.com/go-flucky/flucky/pkg/types"
)
// PrintHumidities displays a list of humidities

View File

@ -5,10 +5,10 @@ import (
"time"
"github.com/volker-raschek/flucky/pkg/sensor"
"github.com/go-flucky/flucky/pkg/sensor"
"github.com/go-flucky/flucky/pkg/types"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/types"
)
var humiditySensorModels = map[types.SensorModel]types.SensorModel{

View File

@ -8,10 +8,10 @@ import (
"syscall"
"time"
"github.com/volker-raschek/flucky/pkg/config"
"github.com/volker-raschek/flucky/pkg/logfile"
"github.com/volker-raschek/flucky/pkg/sensor"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/go-flucky/flucky/pkg/config"
"github.com/go-flucky/flucky/pkg/logfile"
"github.com/go-flucky/flucky/pkg/sensor"
"github.com/go-flucky/flucky/pkg/types"
)
// Start the daemon

View File

@ -1,6 +1,6 @@
package collect
import "github.com/volker-raschek/flucky/pkg/types"
import "github.com/go-flucky/flucky/pkg/types"
func Humidities(humidityChannel <-chan *types.Humidity) []*types.Humidity {
humidityList := make([]*types.Humidity, 0)

View File

@ -1,7 +1,7 @@
package collect
import (
"github.com/volker-raschek/flucky/pkg/types"
"github.com/go-flucky/flucky/pkg/types"
)
func Temperatures(temperatureChannel <-chan *types.Temperature) []*types.Temperature {

View File

@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/volker-raschek/flucky/pkg/config"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/go-flucky/flucky/pkg/config"
"github.com/go-flucky/flucky/pkg/types"
)
// GetSensorsByTemperatures returns commulated list of sensors by temperature values

View File

@ -9,7 +9,7 @@ import (
"sort"
"time"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/go-flucky/flucky/pkg/types"
)
// CompressTemperature compresses the temperatures from an array. It is checked

View File

@ -5,8 +5,8 @@ import (
"time"
"github.com/MichaelS11/go-dht"
"github.com/go-flucky/flucky/pkg/types"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/types"
)
// DHT11 is a sensor to measure humidity and temperature.

View File

@ -5,8 +5,8 @@ import (
"time"
"github.com/MichaelS11/go-dht"
"github.com/go-flucky/flucky/pkg/types"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/types"
)
// DHT22 is a sensor to measure humidity and temperature.

View File

@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/go-flucky/flucky/pkg/types"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/yryz/ds18b20"
)

View File

@ -1,6 +1,6 @@
package sensor
import "github.com/volker-raschek/flucky/pkg/types"
import "github.com/go-flucky/flucky/pkg/types"
// HumiditySensor is a interface to describe required functions to measure humidities
type HumiditySensor interface {

View File

@ -3,9 +3,9 @@ package sensor
import (
"sync"
"github.com/volker-raschek/flucky/pkg/internal/collect"
"github.com/volker-raschek/flucky/pkg/internal/prittyprint"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/go-flucky/flucky/pkg/internal/collect"
"github.com/go-flucky/flucky/pkg/internal/prittyprint"
"github.com/go-flucky/flucky/pkg/types"
)
// ReadHumidities returns a list of measured humidities by humidity sensors