Documentation ¶
Index ¶
- Variables
- func BackoffErrorNotify(prefix string) backoff.Notify
- func BsonMEqual(v1, v2 bson.M) (ok bool)
- func BytesToString(b []byte) string
- func Close(c io.Closer)
- func Compress(files []*os.File, dest string) error
- func ComputeHmacSha256(message string, secret string) string
- func Contains(array interface{}, val interface{}) (fla bool)
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func CreateDirPath(filePath string)
- func DeCompress(srcFile *os.File, dstPath string) error
- func DeCompressByPath(tarFile, dest string) error
- func DefaultWait()
- func EncryptPassword(str string) string
- func Exists(path string) bool
- func FillEmptyFileData(data []byte) (res []byte)
- func ForceInitModule(fn func() error) (err error)
- func GetAllFilesFromDir(dirPath string) ([]*os.File, error)
- func GetArrayItems(array interface{}) (res []interface{}, err error)
- func GetFilesFromDir(dirPath string) ([]*os.File, error)
- func GetFromDbCache(key string, getFn func() (string, error)) (res string, err error)
- func GetLocalTime(t time.Time) time.Time
- func GetLocalTimeString(t time.Time) string
- func GetRpcParam(key string, params map[string]string) string
- func GetSpiderCol(col string, name string) string
- func GetSpiderMd5Str(file string) string
- func GetTimeString(t time.Time) string
- func GetUserFromArgs(args ...interface{}) (u interfaces.User)
- func InitModule(id interfaces.ModuleId, fn func() error) (err error)
- func IsCancellable(status string) bool
- func IsDebug() bool
- func IsDir(path string) bool
- func IsFile(path string) bool
- func JsonToBytes(d interface{}) (bytes []byte, err error)
- func ListDir(path string) []os.FileInfo
- func LogDebug(msg string)
- func NewUUIDString() (res string)
- func NormalizeBsonMObjectId(m bson.M) (res bson.M)
- func ObjectToString(params interface{}) string
- func OpenFile(fileName string) *os.File
- func ReadFileOneLine(fileName string) string
- func RemoveFiles(path string)
- func SetFileVariable(filePath string, key string, value string) error
- func ShuffleArray(slice []interface{}) (err error)
- func StringArrayContains(arr []string, str string) bool
- func TrimFileData(data []byte) (res []byte)
- func VisualizeContainer(c *dig.Container) (err error)
- type ChanMap
Constants ¶
This section is empty.
Variables ¶
View Source
var CronUtils = cronUtils{ // contains filtered or unexported fields }
View Source
var TaskExecChanMap = NewChanMap()
Functions ¶
func BackoffErrorNotify ¶ added in v0.6.0
func BackoffErrorNotify(prefix string) backoff.Notify
func BsonMEqual ¶ added in v0.6.0
func BytesToString ¶
func ComputeHmacSha256 ¶
func DeCompressByPath ¶
func DefaultWait ¶ added in v0.6.0
func DefaultWait()
func EncryptPassword ¶
func FillEmptyFileData ¶ added in v0.6.0
func ForceInitModule ¶ added in v0.6.0
func GetArrayItems ¶ added in v0.6.0
func GetArrayItems(array interface{}) (res []interface{}, err error)
func GetFromDbCache ¶ added in v0.6.0
func GetLocalTimeString ¶
func GetSpiderCol ¶
func GetSpiderMd5Str ¶
func GetTimeString ¶
func GetUserFromArgs ¶ added in v0.6.0
func GetUserFromArgs(args ...interface{}) (u interfaces.User)
func InitModule ¶ added in v0.6.0
func InitModule(id interfaces.ModuleId, fn func() error) (err error)
func IsCancellable ¶ added in v0.6.0
func JsonToBytes ¶ added in v0.6.0
func NewUUIDString ¶ added in v0.6.0
func NewUUIDString() (res string)
func ReadFileOneLine ¶
func RemoveFiles ¶
func RemoveFiles(path string)
func SetFileVariable ¶
设置文件变量值 可以理解为将文件中的变量占位符替换为想要设置的值
func ShuffleArray ¶ added in v0.6.0
func ShuffleArray(slice []interface{}) (err error)
func StringArrayContains ¶
func TrimFileData ¶ added in v0.6.0
func VisualizeContainer ¶ added in v0.6.0
Types ¶
type ChanMap ¶
type ChanMap struct {
// contains filtered or unexported fields
}
func NewChanMap ¶
func NewChanMap() *ChanMap
func (*ChanMap) ChanBlocked ¶
func (*ChanMap) HasChanKey ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.