Documentation
¶
Overview ¶
Package commands cmd/dmsg/pty-ui/commands/pty-ui.go c1-net-dmsg
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: dmsgclient.ExecName(), Short: "DMSG pseudoterminal GUI", Long: ` ┌┬┐┌┬┐┌─┐┌─┐┌─┐┌┬┐┬ ┬ ┬ ┬┬ │││││└─┐│ ┬├─┘ │ └┬┘───│ ││ ─┴┘┴ ┴└─┘└─┘┴ ┴ ┴ └─┘┴ ` + "DMSG pseudoterminal GUI", Run: func(_ *cobra.Command, _ []string) { if _, err := buildinfo.Get().WriteTo(log.Writer()); err != nil { log.Printf("Failed to output build info: %v", err) } ui := pty.NewUI(pty.NetUIDialer(hostNet, hostAddr), conf) logrus. WithField("addr", addr). Info("Serving.") srv := &http.Server{ ReadTimeout: 3 * time.Second, WriteTimeout: 3 * time.Second, IdleTimeout: 30 * time.Second, ReadHeaderTimeout: 3 * time.Second, Addr: addr, Handler: ui.Handler(nil), } err := srv.ListenAndServe() logrus. WithError(err). Info("Stopped serving.") }, }
RootCmd contains commands to start a dmsgpty-ui server for a dmsgpty-host
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.