added a central constants package so we don't have to pull a provider if all we need is its name

This commit is contained in:
2026-09-21 15:26:57 +01:00
parent 263d3c29a3
commit 6ff4cc3014
3 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"sync"
"time"
"esdi/constants"
"esdi/telemetry"
bngsdk "github.com/ESilva15/gobngsdk"
@@ -36,7 +37,7 @@ type BeamNG struct {
}
const (
NAME = "BeamNG.drive"
NAME = constants.BeamNGProviderName
)
func NewBeamNGProvider(logger *slog.Logger, opts *bngsdk.Options) (*BeamNG, error) {
+2 -1
View File
@@ -10,13 +10,14 @@ import (
"sync"
"time"
"esdi/constants"
"esdi/telemetry"
"github.com/ESilva15/goirsdk"
)
const (
NAME = "iRacing"
NAME = constants.IRacingProviderName
)
// IRacing is our iRacing telemetry data provider - its a TelemetryProvider interface