Documentation ¶
Index ¶
- Constants
- func AlertUpdateInfo()
- func Atoi(s string) int
- func CheckVersion(version string) (bool, string, error)
- func GenerateRandomPasswords() string
- func GetCurrentVersion() string
- func GetRandomString(length int) string
- func GetUpdateTime() string
- func Init(level string)
- func IsFlushCache(oldTimestamp int64) bool
- func ReadTimestamp(TimestampType string) int64
- func RemoveDuplicatesAndEmpty(a []string) (ret []string)
- func ReturnTimestampType(provider string, TimestampType string) string
- func ReturnVersionTimestampFile() string
- func TimeDifference(oldTimestamp int64)
- func WriteTimestamp(TimestampType string)
Constants ¶
View Source
const ( LogLevelTrace = "trace" LogLevelDebug = "debug" LogLevelInfo = "info" LogLevelWarn = "warn" LogLevelError = "error" LogLevelFatal = "fatal" LogLevelPanic = "panic" )
Variables ¶
This section is empty.
Functions ¶
func AlertUpdateInfo ¶
func AlertUpdateInfo()
func GenerateRandomPasswords ¶ added in v0.3.1
func GenerateRandomPasswords() string
func GetCurrentVersion ¶
func GetCurrentVersion() string
func GetUpdateTime ¶
func GetUpdateTime() string
func IsFlushCache ¶ added in v0.2.2
func ReadTimestamp ¶ added in v0.4.0
func RemoveDuplicatesAndEmpty ¶ added in v0.3.1
去除重复字符串和空格
func ReturnTimestampType ¶ added in v0.4.0
func ReturnVersionTimestampFile ¶ added in v0.4.0
func ReturnVersionTimestampFile() string
func TimeDifference ¶ added in v0.2.2
func TimeDifference(oldTimestamp int64)
func WriteTimestamp ¶ added in v0.4.0
func WriteTimestamp(TimestampType string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.