move config to internal

This commit is contained in:
Joel Wetzell
2025-12-06 22:42:38 -06:00
parent 2c6502b622
commit 07108918f1
19 changed files with 79 additions and 51 deletions

View File

@@ -6,6 +6,8 @@ import (
"log/slog"
"os"
"sync"
"github.com/jwetzell/showbridge-go/internal/config"
)
type RoutingError struct {
@@ -21,7 +23,7 @@ type Router struct {
moduleWait sync.WaitGroup
}
func NewRouter(ctx context.Context, config Config) (*Router, []ModuleError, []RouteError) {
func NewRouter(ctx context.Context, config config.Config) (*Router, []ModuleError, []RouteError) {
logger := slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelInfo,