mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
19 lines
374 B
Go
19 lines
374 B
Go
package core
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/safing/portbase/modules"
|
|
)
|
|
|
|
var (
|
|
coreModule = modules.Register("core", nil, startCore, nil, "base", "database", "config", "api", "random")
|
|
)
|
|
|
|
func startCore() error {
|
|
if err := startPlatformSpecific(); err != nil {
|
|
return fmt.Errorf("failed to start plattform-specific components: %s", err)
|
|
}
|
|
|
|
return registerDatabases()
|
|
}
|