Documentation ¶
Index ¶
- Variables
- 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 EncryptPassword(str string) string
- func Exists(path string) bool
- func GetAllFilesFromDir(dirPath string) ([]*os.File, error)
- func GetFilesFromDir(dirPath string) ([]*os.File, error)
- func GetJson(message entity.NodeMessage) string
- func GetLangFromLangNamePlain(name string) entity.Lang
- func GetLangList() []entity.Lang
- func GetLangListPlain() []entity.Lang
- func GetLocalTime(t time.Time) time.Time
- func GetLocalTimeString(t time.Time) string
- func GetMessage(message redis.Message) *entity.NodeMessage
- func GetPackageJsonDeps(filepath string) (deps []string, err error)
- func GetRpcParam(key string, params map[string]string) string
- func GetSpiderCol(col string, name string) string
- func GetSpiderMd5Str(file string) string
- func GetSystemScriptPath(scriptName string) string
- func GetSystemScripts() (res []string)
- func GetTimeString(t time.Time) string
- func InterfaceToString(value interface{}) string
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsObjectIdNull(id bson.ObjectId) bool
- func ListDir(path string) []os.FileInfo
- 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 StringArrayContains(arr []string, str string) bool
- type ChanMap
Constants ¶
This section is empty.
Variables ¶
View Source
var TaskExecChanMap = NewChanMap()
Functions ¶
func BytesToString ¶
func ComputeHmacSha256 ¶
func DeCompress ¶
* @zipFile:压缩文件 @dstPath:解压之后文件保存路径
func DeCompressByPath ¶
* @tarFile:压缩文件路径 @dest:解压文件夹
func EncryptPassword ¶
func GetJson ¶
func GetJson(message entity.NodeMessage) string
func GetLangFromLangNamePlain ¶
根据语言名获取语言实例,不包含状态
func GetLangList ¶
func GetLocalTimeString ¶
func GetMessage ¶
func GetMessage(message redis.Message) *entity.NodeMessage
func GetPackageJsonDeps ¶
func GetSpiderCol ¶
func GetSpiderMd5Str ¶
func GetSystemScriptPath ¶
func GetTimeString ¶
func InterfaceToString ¶
func InterfaceToString(value interface{}) string
func IsObjectIdNull ¶
func SetFileVariable ¶
设置文件变量值 可以理解为将文件中的变量占位符替换为想要设置的值
func StringArrayContains ¶
Types ¶
type ChanMap ¶
type ChanMap struct {
// contains filtered or unexported fields
}
func NewChanMap ¶
func NewChanMap() *ChanMap
func (*ChanMap) ChanBlocked ¶
func (*ChanMap) HasChanKey ¶
Click to show internal directories.
Click to hide internal directories.