Documentation ¶
Index ¶
- Constants
- Variables
- func CurrentTimeMicro() int64
- func CurrentTimeMilli() int64
- func CurrentTimeNano() int64
- func CurrentTimeSec() int64
- func GenUUID() string
- func GeneratePasswd(accName, passwd string) string
- func GetMagicKey(c *gin.Context) string
- func GetRedisSessionKey(accName string) string
- func InitLogger()
- func Json2Struct(data []byte, dest interface{})
- func MD5V(str string) string
- func MD5V2(str string) string
- func MD5V3(str string) string
- func Marshal(data map[string]interface{}) []byte
- func PostJson(url string, postData *string) []byte
- func Struct2Json(val interface{}) string
- func TimeFmt(ts *int64) string
- func Unmarshal(file string) map[string]interface{}
- type DeployLog
- type LogItem
- type SmsWebConsoleConnector
Constants ¶
View Source
const ( EXPIRE_TIME = 600000 CLEAN_INTERVAL time.Duration = 60 * time.Second )
Variables ¶
View Source
var (
LOGGER *zap.Logger = nil
)
Functions ¶
func CurrentTimeMicro ¶
func CurrentTimeMicro() int64
func CurrentTimeMilli ¶
func CurrentTimeMilli() int64
func CurrentTimeNano ¶
func CurrentTimeNano() int64
func CurrentTimeSec ¶
func CurrentTimeSec() int64
func GeneratePasswd ¶
func GetMagicKey ¶
func GetRedisSessionKey ¶
func InitLogger ¶
func InitLogger()
func Json2Struct ¶
func Json2Struct(data []byte, dest interface{})
func Struct2Json ¶
func Struct2Json(val interface{}) string
Types ¶
type DeployLog ¶
type DeployLog struct {
// contains filtered or unexported fields
}
func NewDeployLog ¶
func NewDeployLog() *DeployLog
func (*DeployLog) PubErrorLog ¶
func (*DeployLog) PubFailLog ¶
func (*DeployLog) PubSuccessLog ¶
type LogItem ¶
func NewLogItem ¶
func NewLogItem() *LogItem
type SmsWebConsoleConnector ¶
type SmsWebConsoleConnector struct { IP string Port int Passwd string // contains filtered or unexported fields }
func (*SmsWebConsoleConnector) Close ¶
func (h *SmsWebConsoleConnector) Close()
func (*SmsWebConsoleConnector) Connect ¶
func (h *SmsWebConsoleConnector) Connect() bool
func (*SmsWebConsoleConnector) SendData ¶
func (h *SmsWebConsoleConnector) SendData(message []byte) bool
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package multimap provides an abstract MultiMap interface.
|
Package multimap provides an abstract MultiMap interface. |
setmultimap
Package setmultimap implements a multimap backed by a set.
|
Package setmultimap implements a multimap backed by a set. |
slicemultimap
Package slicemultimap implements a multimap backed by go's native slice.
|
Package slicemultimap implements a multimap backed by go's native slice. |
Click to show internal directories.
Click to hide internal directories.