cmd_user_ string
)
-func usage() {
- fmt.Fprintf(os.Stderr, "Usage: door_client_zmq\n")
- flag.PrintDefaults()
-}
-
func init() {
flag.StringVar(&cmd_port_, "cmdport", "ipc:///run/tuer/door_cmd.ipc", "zmq command socket path")
flag.StringVar(&sub_port_, "pubport", "tcp://torwaechter.realraum.at:4242", "zmq subscribe/listen socket path")
flag.StringVar(&cmd_method_, "method", "", "zmq cmd method")
flag.StringVar(&cmd_user_, "usernick", "", "zmq cmd user identity")
- flag.Usage = usage
flag.Parse()
}
Syslog_ *log.Logger
)
-func usage() {
- fmt.Fprintf(os.Stderr, "Usage: door_daemon_0mq <door tty device>\n")
- flag.PrintDefaults()
-}
-
func init() {
flag.StringVar(&cmd_port_, "cmdport", "ipc:///run/tuer/door_cmd.ipc", "zmq command socket path")
flag.StringVar(&pub_port_, "pubport", "tcp://*:4242", "zmq public/listen socket path")
flag.StringVar(&door_tty_path_, "device", "/dev/door", "door tty device path")
flag.BoolVar(&use_syslog_, "syslog", false, "log to syslog local1 facility")
- flag.Usage = usage
flag.Parse()
}
enable_debuglog_ bool
)
-func usage() {
- fmt.Fprintf(os.Stderr, "Usage: zmq_broker_event_transformer [options]\n")
- flag.PrintDefaults()
-}
-
func init() {
flag.StringVar(&door_cmd_addr_, "doorcmdaddr", "ipc:///run/tuer/door_cmd.ipc", "zmq door event publish addr")
flag.StringVar(&doorsub_addr_, "doorsubaddr", "tcp://torwaechter.realraum.at:4242", "zmq door event publish addr")
flag.StringVar(&brain_listen_addr_, "brainlisten", "tcp://*:4245", "address to listen for requests about latest stored event")
flag.BoolVar(&use_syslog_, "syslog", false, "log to syslog local2 facility")
flag.BoolVar(&enable_debuglog_, "debug", false, "enable debug logging")
- flag.Usage = usage
flag.Parse()
}
flag.StringVar(&pub_addr, "brokeraddr", "tcp://torwaechter.realraum.at:4244", "zmq address to send stuff to")
flag.StringVar(&tty_dev_, "ttydev", "/dev/ttyACM0", "path do tty uc device")
flag.BoolVar(&use_syslog_, "syslog", false, "log to syslog local1 facility")
- //~ flag.Usage = flag.PrintDefaults
flag.Parse()
}