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 (
"flag"
"github.com/cyrilix/robocar-base/cli"
"github.com/cyrilix/robocar-led/part"
"github.com/cyrilix/robocar-led/pkg/part"
"go.uber.org/zap"
"log"
"os"

View File

@ -3,7 +3,7 @@ package part
import (
"fmt"
"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"
mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/golang/protobuf/proto"
@ -27,8 +27,8 @@ func NewPart(client mqtt.Client, driveModeTopic, recordTopic string) *LedPart {
}
type LedPart struct {
led led.ColoredLed
client mqtt.Client
led led.ColoredLed
client mqtt.Client
onDriveModeTopic string
onRecordTopic string