INNER CODE UNIT · Go

empty

cloudflare/alertmanager2es · main.go:58

func empty(s string) bool {
	return len(strings.TrimSpace(s)) == 0
}

func basicAuth(username, password string) string {
	auth := username + ":" + password
	return base64.StdEncoding.EncodeToString([]byte(auth))
}

func init() {
	prometheus.MustRegister(notificationsErrored)
	prometheus.MustRegister(notificationsInvalid)
	prometheus.MustRegister(notificationsReceived)
}

func main() {
	var showVersion bool
	flag.StringVar(&addr, "addr", addr, "host:port to listen to")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…