Documentation ¶
Index ¶
- Variables
- func ConverToBinary(n int) string
- func GetInput(intput string) <-chan int
- func GetMySQLFromConsul() (db *gorm.DB, err error)
- func GetRedisFromConsul() (*redis.Client, error)
- func MD5Encode(data string) string
- func MakePassword(plainwd, salt string) string
- func NewTracer(serviceName string, addr string) (opentracing.Tracer, io.Closer, error)
- func Resp(w http.ResponseWriter, code int, data interface{}, message string)
- func RespCreated(w http.ResponseWriter, data interface{}, message string)
- func RespFail(w http.ResponseWriter, data interface{}, message string)
- func RespList(w http.ResponseWriter, code int, data interface{}, message string, ...)
- func RespListFail(w http.ResponseWriter, data interface{}, message string, rows interface{}, ...)
- func RespListOK(w http.ResponseWriter, data interface{}, message string, rows interface{}, ...)
- func RespOK(w http.ResponseWriter, data interface{}, message string)
- func SQ(in <-chan int) <-chan int
- func StringToArray(intput string) []int
- func ToInt(intput string) int
- func ValidPassword(plainwd, salt, password string) bool
- type H
- type Setting
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LocalSetting *Setting ConsulSetting *Setting DB *gorm.DB Red *redis.Client )
Functions ¶
func GetMySQLFromConsul ¶
func GetRedisFromConsul ¶
func GetRedisFromConsul() (*redis.Client, error)
func MakePassword ¶
func RespCreated ¶
func RespCreated(w http.ResponseWriter, data interface{}, message string)
func RespFail ¶
func RespFail(w http.ResponseWriter, data interface{}, message string)
func RespList ¶
func RespList(w http.ResponseWriter, code int, data interface{}, message string, rows interface{}, total interface{}, skyWalkingDynamicField string)
func RespListFail ¶
func RespListFail(w http.ResponseWriter, data interface{}, message string, rows interface{}, total interface{}, skyWalkingDynamicField string)
func RespListOK ¶
func RespListOK(w http.ResponseWriter, data interface{}, message string, rows interface{}, total interface{}, skyWalkingDynamicField string)
func RespOK ¶
func RespOK(w http.ResponseWriter, data interface{}, message string)
* 200 OKLoginSuccessVO 201 Created 401 Unauthorized 403 Forbidden 404 Not Found *
func StringToArray ¶
func ValidPassword ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.