(client *master.MasterClient)
| 207 | } |
| 208 | |
| 209 | func newCmdFlashNodeHTTPStatAll(client *master.MasterClient) *cobra.Command { |
| 210 | return &cobra.Command{ |
| 211 | Use: "httpStatAll" + _flashnodeAddr, |
| 212 | Short: "show flashnode stat all(key with expired time)", |
| 213 | Args: cobra.MinimumNArgs(1), |
| 214 | RunE: func(_ *cobra.Command, args []string) (err error) { |
| 215 | // check flashnode whether exist |
| 216 | _, err = client.NodeAPI().GetFlashNode(args[0]) |
| 217 | if err != nil { |
| 218 | return |
| 219 | } |
| 220 | stat, err := httpclient.New().Addr(addr2Prof(args[0])).FlashNode().StatAll() |
| 221 | if err != nil { |
| 222 | return |
| 223 | } |
| 224 | stdoutln(formatIndent(stat)) |
| 225 | return |
| 226 | }, |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | func newCmdFlashNodeHTTPSlotStat(client *master.MasterClient) *cobra.Command { |
| 231 | return &cobra.Command{ |
no test coverage detected