mirror of
https://github.com/flavioribeiro/donut.git
synced 2025-09-27 03:15:54 +08:00
26 lines
423 B
Go
26 lines
423 B
Go
//go:build !js
|
|
// +build !js
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
"net/http"
|
|
|
|
"github.com/flavioribeiro/donut/internal/web"
|
|
|
|
"go.uber.org/fx"
|
|
)
|
|
|
|
func main() {
|
|
enableICEMux := false
|
|
flag.BoolVar(&enableICEMux, "enable-ice-mux", false, "Enable ICE Mux on :8081")
|
|
flag.Parse()
|
|
|
|
fx.New(
|
|
web.Dependencies(enableICEMux),
|
|
// Forcing the lifecycle initiation with NewHTTPServer
|
|
fx.Invoke(func(*http.Server) {}),
|
|
).Run()
|
|
}
|