Files
donut/main.go
Leandro Moreira 33710100a5 add mpeg-ts prober
2024-02-09 09:49:17 -03:00

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()
}