MCPcopy Create free account
hub / github.com/deepflowio/deepflow / GetServerInfo

Function GetServerInfo

cli/ctl/common/http_util.go:208–214  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

206}
207
208func GetServerInfo(cmd *cobra.Command) *Server {
209 ip, _ := cmd.Flags().GetString("ip")
210 port, _ := cmd.Flags().GetUint32("api-port")
211 rpcPort, _ := cmd.Flags().GetUint32("rpc-port")
212 svcPort, _ := cmd.Flags().GetUint32("svc-port")
213 return &Server{ip, port, rpcPort, svcPort}
214}
215
216func GetTimeout(cmd *cobra.Command) time.Duration {
217 t, _ := cmd.Flags().GetDuration("timeout")

Callers 1

GetURLInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected