refactor: move led and part modules to pkg
This commit is contained in:
parent
7f94e749b7
commit
15c3fcae95
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user