Documentation ¶
Index ¶
- func CleanUpfuncName(funcName string) string
- func CopyFile(srcName string, dstName string) (written int64, err error)
- func DifferenceSubset(mainSlice, subSlice []int64) []int64
- func FileExist(filename string) bool
- func FileTmpPath(fullPath, dbPrefix string) string
- func FirstLower(s string) string
- func GetConversationIDByGroupID(groupID string) string
- func GetConversationIDByMsg(msg *sdk_struct.MsgStruct) string
- func GetConversationTableName(conversationID string) string
- func GetCurrentTimestampByMill() int64
- func GetCurrentTimestampByNano() int64
- func GetErrTableName(conversationID string) string
- func GetMsgID(sendID string) string
- func GetSelfFuncName() string
- func GetSwitchFromOptions(Options map[string]bool, key string) (result bool)
- func GetTableName(conversationID string) string
- func Int64ToString(i int64) string
- func IntToString(i int) string
- func IsContain(target string, List []string) bool
- func IsContainInt(target int, List []int) bool
- func JsonStringToStruct(s string, args interface{}) error
- func KMP(rMainString string, rSubString string) (isInMainString bool)
- func Md5(s string) string
- func OperationIDGenerator() string
- func SetSwitchFromOptions(Options map[string]bool, key string, value bool)
- func StructToJsonString(param interface{}) string
- func StructToJsonStringDefault(param interface{}) string
- func TimeToString(t time.Time) string
- func TrimStringList(list []string) (result []string)
- func UnixSecondToTime(second int64) time.Time
- func UnmarshalNotificationElem(bytes []byte, t interface{}) error
- func Wrap(err error, message string) error
- type LockPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpfuncName ¶
func DifferenceSubset ¶
Get the diff of two slices
func FileTmpPath ¶
func FirstLower ¶
func GetConversationIDByMsg ¶
func GetConversationIDByMsg(msg *sdk_struct.MsgStruct) string
func GetCurrentTimestampByMill ¶
func GetCurrentTimestampByMill() int64
Get the current timestamp by Mill
func GetCurrentTimestampByNano ¶
func GetCurrentTimestampByNano() int64
Get the current timestamp by Nano
func GetErrTableName ¶
func GetSelfFuncName ¶
func GetSelfFuncName() string
func GetSwitchFromOptions ¶
func GetTableName ¶
func Int64ToString ¶
func IntToString ¶
func IsContainInt ¶
func JsonStringToStruct ¶
The incoming parameter must be a pointer
func OperationIDGenerator ¶
func OperationIDGenerator() string
func SetSwitchFromOptions ¶
func StructToJsonString ¶
func StructToJsonString(param interface{}) string
func StructToJsonStringDefault ¶
func StructToJsonStringDefault(param interface{}) string
func TimeToString ¶
func TrimStringList ¶
func UnixSecondToTime ¶
Types ¶
type LockPool ¶ added in v3.8.1
type LockPool struct {
// contains filtered or unexported fields
}
resource manager
func NewLockPool ¶ added in v3.8.1
Click to show internal directories.
Click to hide internal directories.