create subpackages for different endpoints type

This commit is contained in:
2025-11-30 19:57:34 +01:00
parent 1c8607800a
commit ac56ca3b35
21 changed files with 176 additions and 184 deletions

View File

@@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"sync"
"time"
"github.com/rs/zerolog/log"
"github.com/wailsapp/wails/v2/pkg/runtime"
@@ -165,12 +164,6 @@ func (h *Manager) SetEndpointSettings(ctx context.Context, endpointSN string, se
// Start starts to find new endpoint events
func (h *Manager) Start(ctx context.Context) error {
// Register all the providers to use as hardware scanners
h.RegisterProvider(NewFTDIProvider(3 * time.Second))
h.RegisterProvider(NewOS2LProvider())
h.RegisterProvider(NewMIDIProvider(3 * time.Second))
for providerName, provider := range h.providers {
// Initialize the provider