Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StartPushNotificationsServer = &command.AddCmd{ GeneratePID: false, LockProcess: false, ProcessName: "push_notifications_server", EnableStartupServices: true, StartupCoreServices: command.StartupCoreServices{ BrokerClients: true, }, OnGetProcessName: func(cmd *command.AddCmd) string { brokerName := getBrokerName(cmd.Args) return cmd.ProcessName + "_" + brokerName }, Cmd: "broker:start", Name: "Start - Broker Server", OnExecute: func(cmd *command.AddCmd) { brokerName := getBrokerName(cmd.Args) brk, err := broker.GetBroker(_context.GetDefaultContext(), brokerName) if err != nil { log.Fatalln("failed to generate broker...", err) } err = brk.Start() if err != nil { log.Fatalln("failed to start broker...", err) } for { time.Sleep(time.Second) } }, OnCreate: func(cmd *command.AddCmd) { cmd.Command.Args = cobra.MaximumNArgs(1) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.