added live time network backup and restore
This commit is contained in:
1 parent
3bef3f76e9
commit
1e3cc446e0
3 files changed
+276
-194
No files matched your search
+9
-1
@@ -1,6 +1,14 @@
|
||||
package cmd
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// isNetworkAddress checks if the address is in host:port format
|
||||
func isNetworkAddress(addr string) bool {
|
||||
return strings.Contains(addr, ":")
|
||||
}
|
||||
|
||||
func formatBytes(b int64) string {
|
||||
const unit = 1024
|
||||
|
||||
Reference in new issue
Block a user