color api

This commit is contained in:
Stian Fredrik Aune
2021-05-23 22:22:15 +02:00
parent e4078de845
commit f045bc0f4d
13 changed files with 260 additions and 10 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ func main() {
_ = driver.Publish(context.Background(), bridge, devices)
ch := make(chan models.Event)
ch := config.EventChannel
go func() {
err := driver.Run(context.Background(), bridge, ch)
if err != nil {
+2
View File
@@ -4,11 +4,13 @@ import (
"git.aiterp.net/lucifer/new-server/app/config"
"github.com/pressly/goose"
"log"
"time"
)
func main() {
db := config.DBX().DB
log.Printf("Target version: %s",time.Now().Format("20060102150405"))
log.Printf("Database: %s:%d/%s", config.MySqlHost(), config.MySqlPort(), config.MySqlSchema())
log.Printf("Authenticating as: %s", config.MySqlUsername())