mirror of
https://github.com/OliveTin/OliveTin
synced 2026-09-01 15:35:36 +00:00
17 lines
397 B
Go
17 lines
397 B
Go
package httpservers
|
|
|
|
import (
|
|
config "github.com/OliveTin/OliveTin/internal/config"
|
|
"github.com/OliveTin/OliveTin/internal/executor"
|
|
)
|
|
|
|
// StartServers will start 3 HTTP servers. The WebUI, the Rest API, and a proxy
|
|
// for both of them.
|
|
func StartServers(cfg *config.Config, ex *executor.Executor) {
|
|
if cfg.Prometheus.Enabled {
|
|
go StartPrometheus(cfg)
|
|
}
|
|
|
|
StartSingleHTTPFrontend(cfg, ex)
|
|
}
|