github.com/lei006/gmqtt-broker@v0.0.1/broker/usage.go (about)

     1  package broker
     2  
     3  var usageStr = `
     4  Usage: hmq [options]
     5  
     6  Broker Options:
     7      -w,  --worker <number>            Worker num to process message, perfer (client num)/10. (default 1024)
     8      -p,  --port <port>                Use port for clients (default: 1883)
     9           --host <host>                Network host to listen on. (default "0.0.0.0")
    10      -ws, --wsport <port>              Use port for websocket monitoring
    11      -wsp,--wspath <path>              Use path for websocket monitoring
    12      -c,  --config <file>              Configuration file
    13  
    14  Logging Options:
    15      -d, --debug <bool>                Enable debugging output (default false)
    16      -D                                Debug and trace
    17  
    18  Cluster Options:
    19      -r,  --router  <rurl>             Router who maintenance cluster info
    20      -cp, --clusterport <cluster-port> Cluster listen port for others
    21  
    22  Common Options:
    23      -h, --help                        Show this message
    24  `