INNER CODE UNIT · Go

main

wasmCloud/wasmCloud · runtime-gateway/main.go:34

func main() {
	var (
		devMode          bool
		bindAddr         string
		fallbackEndpoint string
	)

	flag.BoolVar(&devMode, "dev-mode", false, "Enable development mode logging")
	flag.StringVar(&bindAddr, "bind-addr", ":8000", "Address to bind the HTTP gateway to")
	flag.StringVar(&fallbackEndpoint, "fallback-endpoint", "", "Proxy Requests are routed to this endpoint when no workloads are found. Example: 'http://notfound.svc.cluster.local")
	flag.Parse()

	opts := zap.Options{
		Development: devMode,
	}
	opts.BindFlags(flag.CommandLine)

	zapOpts := []zap.Opts{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…