Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UdsCommand = &cobra.Command{ Use: "client.sock", Short: "Listening config changes & server on unix domain socket", Run: func(cmd *cobra.Command, args []string) { zerolog.SetGlobalLevel(zerolog.Level(loglevel)) if withPprof { go func() { log.Info("Pprof server listening on 6060") if http.ListenAndServe(":6060", nil) == nil { log.Error("Pprof error") } }() } etcd.Connect(etcdHosts, etcdCertFile, etcdKeyFile, etcdCaFile, etcdServerName) log.Info("Successfully connected to etcd server[uds]") wch := &client.MemoryWatcher{Tc: etcd.GetMetaCacheHandler()} uc := &client.UnixSocket{ Wch: wch, } go uc.Serve(sockFile) wch.KeepEyesOnKeyWithPrefix(prefix) }, }
UdsCommand : unix domain socket command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.