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