fix: migrate to gitea

This commit is contained in:
2020-06-10 21:13:05 +02:00
parent 940e04371c
commit a49546bd6d
20 changed files with 61 additions and 55 deletions

View File

@ -5,7 +5,7 @@ import (
"io"
"text/tabwriter"
"github.com/volker-raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
)
// PrintSensors displays a list with all configured sensors

View File

@ -8,10 +8,10 @@ import (
"time"
"github.com/volker-raschek/flucky/pkg/internal/format"
"git.cryptic.systems/volker.raschek/flucky/pkg/internal/format"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/types"
)
var (

View File

@ -7,11 +7,11 @@ import (
"os/signal"
"syscall"
"github.com/volker-raschek/flucky/pkg/config"
"github.com/volker-raschek/flucky/pkg/repository"
"github.com/volker-raschek/flucky/pkg/sensor"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/volker-raschek/go-logger/pkg/logger"
"git.cryptic.systems/volker.raschek/flucky/pkg/config"
"git.cryptic.systems/volker.raschek/flucky/pkg/repository"
"git.cryptic.systems/volker.raschek/flucky/pkg/sensor"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/go-logger"
)
func Start(cnf *config.Config, flogger logger.Logger) error {

View File

@ -9,8 +9,8 @@ import (
"path/filepath"
"strings"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/volker-raschek/go-logger/pkg/logger"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/go-logger"
)
// Database is a general interface for a database backend like postgres, oracle

View File

@ -6,9 +6,9 @@ import (
"fmt"
"time"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/go-logger"
_ "github.com/lib/pq"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/volker-raschek/go-logger/pkg/logger"
)
// Postgres implementation

View File

@ -5,9 +5,9 @@ import (
"database/sql"
"fmt"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/go-logger"
_ "github.com/mattn/go-sqlite3"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/volker-raschek/go-logger/pkg/logger"
)
// SQLite implementation

View File

@ -5,9 +5,9 @@ import (
"net/url"
"strings"
"github.com/volker-raschek/flucky/pkg/repository/db"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/volker-raschek/go-logger/pkg/logger"
"git.cryptic.systems/volker.raschek/flucky/pkg/repository/db"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/go-logger"
)
// Repository represent a repository where all devices, sensors and measured

View File

@ -12,12 +12,12 @@ import (
"testing"
"time"
"git.cryptic.systems/volker.raschek/flucky/pkg/repository"
"git.cryptic.systems/volker.raschek/flucky/pkg/testutils/dockerutils"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/go-logger"
uuid "github.com/satori/go.uuid"
"github.com/stretchr/testify/require"
"github.com/volker-raschek/flucky/pkg/repository"
"github.com/volker-raschek/flucky/pkg/testutils/dockerutils"
"github.com/volker-raschek/flucky/pkg/types"
"github.com/volker-raschek/go-logger/pkg/logger"
)
func TestPostgresBackend(t *testing.T) {
@ -48,7 +48,7 @@ func TestPostgresBackend(t *testing.T) {
dsnURL, err := url.Parse(fmt.Sprintf("postgres://postgres:%v@127.0.0.1:%v?sslmode=disable", postgresDBPasswort, postgresHostPort))
require.NoError(err)
repo, err := repository.New(dsnURL, logger.NewDefaultLogger(logger.LogLevelDebug))
repo, err := repository.New(dsnURL, logger.NewLogger(logger.LogLevelDebug))
require.NoError(err)
testBackend(t, repo)
@ -64,7 +64,7 @@ func TestSQLiteBackend(t *testing.T) {
dsnURL, err := url.Parse(fmt.Sprintf("sqlite3://%v/test.db", workspace))
require.NoError(err)
repo, err := repository.New(dsnURL, logger.NewDefaultLogger(logger.LogLevelDebug))
repo, err := repository.New(dsnURL, logger.NewLogger(logger.LogLevelDebug))
require.NoError(err)
testBackend(t, repo)

View File

@ -9,8 +9,8 @@ import (
"github.com/d2r2/go-logger"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/internal/format"
"github.com/volker-raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/flucky/pkg/internal/format"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
)
// BME280 is a sensor to measure humidity and temperature.

View File

@ -4,10 +4,10 @@ import (
"fmt"
"sync"
"git.cryptic.systems/volker.raschek/flucky/pkg/internal/format"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
"github.com/go-flucky/go-dht"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/internal/format"
"github.com/volker-raschek/flucky/pkg/types"
)
// DHT11 is a sensor to measure humidity and temperature.

View File

@ -4,10 +4,10 @@ import (
"fmt"
"sync"
"git.cryptic.systems/volker.raschek/flucky/pkg/internal/format"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
"github.com/go-flucky/go-dht"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/internal/format"
"github.com/volker-raschek/flucky/pkg/types"
)
// DHT22 is a sensor to measure humidity and temperature.

View File

@ -9,9 +9,9 @@ import (
"strings"
"sync"
"git.cryptic.systems/volker.raschek/flucky/pkg/internal/format"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
uuid "github.com/satori/go.uuid"
"github.com/volker-raschek/flucky/pkg/internal/format"
"github.com/volker-raschek/flucky/pkg/types"
)
// DS18B20 is a sensor to measure humidity and temperature.

View File

@ -1,8 +1,9 @@
package sensor
import (
"github.com/volker-raschek/flucky/pkg/types"
"time"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
)
type Sensor interface {

View File

@ -4,7 +4,7 @@ import (
"errors"
"sync"
"github.com/volker-raschek/flucky/pkg/types"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
)
var (