refactor: move led and part modules to pkg

This commit is contained in:
Cyrille Nofficial 2021-10-12 19:05:34 +02:00
parent 7f94e749b7
commit 15c3fcae95
5 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ package main
import ( import (
"flag" "flag"
"github.com/cyrilix/robocar-base/cli" "github.com/cyrilix/robocar-base/cli"
"github.com/cyrilix/robocar-led/part" "github.com/cyrilix/robocar-led/pkg/part"
"go.uber.org/zap" "go.uber.org/zap"
"log" "log"
"os" "os"

View File

@ -3,7 +3,7 @@ package part
import ( import (
"fmt" "fmt"
"github.com/cyrilix/robocar-base/service" "github.com/cyrilix/robocar-base/service"
"github.com/cyrilix/robocar-led/led" "github.com/cyrilix/robocar-led/pkg/led"
"github.com/cyrilix/robocar-protobuf/go/events" "github.com/cyrilix/robocar-protobuf/go/events"
mqtt "github.com/eclipse/paho.mqtt.golang" mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
@ -27,8 +27,8 @@ func NewPart(client mqtt.Client, driveModeTopic, recordTopic string) *LedPart {
} }
type LedPart struct { type LedPart struct {
led led.ColoredLed led led.ColoredLed
client mqtt.Client client mqtt.Client
onDriveModeTopic string onDriveModeTopic string
onRecordTopic string onRecordTopic string