Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Start program start command. Start = cli.Command{ Name: "start", Aliases: []string{"up"}, Usage: "FastMQ program start command✅.\n", Action: func(c *cli.Context) error { app.EchoInfo() if isBackgrund { logker.Info("%s", "FastMQ is enable daemon mode running.") daemon() logker.Info("FastMQ PID: %d running", processID) time.Sleep(time.Second * 3) return nil } logker.Info("%s", "FastMQ serve start up.") mq := app.NewMQServer(conf.LoadOption()) if err := mq.Start(); err != nil { return err } return nil }, } // Stop program stop command. Stop = cli.Command{ Name: "stop", Aliases: []string{"down"}, Usage: "FastMQ program stop command❎.\n", Action: func(c *cli.Context) error { kill() return nil }, } )
View Source
var ( // ErrStartUp START UP ERROR ErrStartUp = errors.New("daemon start error") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.