Documentation
¶
Index ¶
- func AddSalt(input string) string
- func CheckPassword(inputPassword string, realPassword string) bool
- func FileIsExist(path string) bool
- func FileSize(size int64) string
- func GenerateToken() string
- func HmacSha1Encode(input string, key string) string
- func InputString(str *string, hint string)
- func MakeErrJSON(httpStatusCode int, errCode int, msg interface{}) (int, interface{})
- func MakeSuccessJSON(data interface{}) (int, interface{})
- func SSHExecute(ip string, port string, user string, password string, command string) error
- func Sha1Encode(input string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword: Add salt and check the password.
func HmacSha1Encode ¶
HmacSha1Encode: HMAC SHA1 encode
func InputString ¶
InputString used in the install.go for the config file guide.
func MakeErrJSON ¶
MakeErrJSON makes the error response JSON for gin.
func MakeSuccessJSON ¶
func MakeSuccessJSON(data interface{}) (int, interface{})
MakeErrJSON makes the successful response JSON for gin.
func SSHExecute ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.