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

@@ -7,10 +7,11 @@ import (
"time"
"github.com/jwetzell/psn-go"
"github.com/jwetzell/showbridge-go/internal/config"
)
type PSNClient struct {
config ModuleConfig
config config.ModuleConfig
conn *net.UDPConn
router *Router
decoder *psn.Decoder
@@ -19,7 +20,7 @@ type PSNClient struct {
func init() {
RegisterModule(ModuleRegistration{
Type: "net.psn.client",
New: func(config ModuleConfig) (Module, error) {
New: func(config config.ModuleConfig) (Module, error) {
return &PSNClient{config: config, decoder: psn.NewDecoder()}, nil
},