Documentation
¶
Index ¶
- func CloseDB(db *gorm.DB)
- func CompareAppVersion(version1, version2 string) bool
- func ComparePanelVersion(version1, version2 string) bool
- func CompareVersion(version1, version2 string) bool
- func ContainsChinese(text string) bool
- func FormatBytes(bytes uint64) string
- func FormatPercent(percent float64) string
- func GetDBWithPath(dbPath string) (*gorm.DB, error)
- func GetDockerComposeCommand() string
- func GetLang(c *gin.Context) string
- func GetSortedVersions(versions []string) []string
- func GetSystemVersion(versionString string) string
- func GetUuid() string
- func HandleIPList(content string) ([]string, error)
- func IsCrossVersion(version1, version2 string) bool
- func IsNum(s string) bool
- func IsValidDomain(domain string) bool
- func IsValidIP(ip string) bool
- func LoadDBConnByPath(fullPath, dbName string) *gorm.DB
- func LoadDBConnByPathWithErr(fullPath, dbName string) (*gorm.DB, error)
- func LoadSizeUnit(value float64) string
- func LoadSizeUnit2F(value float64) string
- func LoadTimeZoneByCmd() string
- func PunycodeEncode(text string) (string, error)
- func RandStr(n int) string
- func RandStrAndNum(n int) string
- func RemoveRepeatElement(a interface{}) (ret []interface{})
- func RemoveRepeatStr(list []string) (ret []string)
- func RestartService(core, agent, reload bool)
- func ScanPort(port int) bool
- func ScanPortWithProto(port int, proto string) bool
- func ScanUDPPort(port int) bool
- func SplitStr(str string, spi ...string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAppVersion ¶
func ComparePanelVersion ¶
func CompareVersion ¶
func ContainsChinese ¶
func FormatBytes ¶
func FormatPercent ¶
func GetDockerComposeCommand ¶
func GetDockerComposeCommand() string
func GetSortedVersions ¶
func GetSystemVersion ¶
func HandleIPList ¶
func IsCrossVersion ¶
func IsValidDomain ¶
func LoadDBConnByPath ¶
func LoadDBConnByPathWithErr ¶
func LoadSizeUnit ¶
func LoadSizeUnit2F ¶
func LoadTimeZoneByCmd ¶
func LoadTimeZoneByCmd() string
func PunycodeEncode ¶
func RandStrAndNum ¶
func RemoveRepeatElement ¶
func RemoveRepeatElement(a interface{}) (ret []interface{})
func RemoveRepeatStr ¶
func RestartService ¶
func RestartService(core, agent, reload bool)
func ScanPortWithProto ¶
func ScanUDPPort ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.