INNER CODE UNIT · Go

run

arp242/goatcounter · cmd/goatcounter/main.go:119

		run = func(f zli.Flags, ready chan<- struct{}, stop chan struct{}) error {
			return cmdServe(f, ready, stop, false)
		}
	case "saas":
		run = func(f zli.Flags, ready chan<- struct{}, stop chan struct{}) error {
			return cmdServe(f, ready, stop, true)
		}
	case "monitor":
		run = cmdMonitor
	case "import":
		run = cmdImport
	case "dashboard":
		// Wrap as this also doubles as an example, and these flags just obscure
		// things.
		run = func(f zli.Flags, ready chan<- struct{}, stop chan struct{}) error {
			defer func() { ready <- struct{}{} }()
			return cmdDashboard(f)
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…