MCPcopy Create free account

hub / github.com/a1667834841/smzdmForGo / functions

Functions59 in github.com/a1667834841/smzdmForGo

↓ 7 callersMethodPushDingDing
钉钉推送者实现推送方法
push/pusher.go:26
↓ 3 callersFunctionReadPusedInfo
读取已推送文章id 返回map
file/fileUtis.go:42
↓ 3 callersMethodStart
启动定时器需要执行的任务
trick/cron.go:34
↓ 3 callersFunctiondeserializeJson
(CheckInfoJson string)
route.go:94
↓ 3 callersFunctionwrapDataWithResult
(data string)
route.go:106
↓ 2 callersMethodCheckInAllUsers
()
check_in/checkIn.go:39
↓ 2 callersFunctionDeserializeJson
(CheckInfoJson string)
file/fileUtis.go:242
↓ 2 callersFunctionGetSatisfiedGoods
获取商品 @return []product 符合条件的商品集合 @return []product 符合自己条件的商品集合
smzdm/smzdm.go:50
↓ 2 callersFunctionNewCheckIn
(dbPath string)
check_in/checkIn.go:23
↓ 2 callersFunctionNewMyTick
(interval int, f Fn)
trick/cron.go:26
↓ 2 callersFunctionReadConf
输入命令行 写入配置文件 func InputCmd() { file, _ := exec.LookPath(os.Args[0]) path, _ := filepath.Abs(file) index := strings.LastIndex(path, string(os.PathSe
file/fileUtis.go:145
↓ 2 callersFunctionWriteCheckInfoJson
(chekInfos []CheckInfo)
file/fileUtis.go:254
↓ 2 callersFunctionWritePushedInfo
保存已推送文章id 到本地
file/fileUtis.go:77
↓ 2 callersMethoddoCheckIn
(user db.User)
check_in/checkIn.go:55
↓ 2 callersFunctionreadCheckInfoJson
()
route.go:78
↓ 1 callersFunctionDemoCron
()
trick/cron.go:8
↓ 1 callersMethodGetAllUsers
()
db/sqlite.go:75
↓ 1 callersFunctionGetGoods
GetGoods 获取商品集合 @param offset @return result 商品集合
smzdm/smzdm.go:125
↓ 1 callersMethodInitTables
()
db/sqlite.go:43
↓ 1 callersFunctionNewDB
(dataSourceName string)
db/sqlite.go:24
↓ 1 callersFunctionPushProWithDingDing
推送商品到钉钉
push/pusher.go:55
↓ 1 callersFunctionPushTextWithDingDing
推送文字到钉钉
push/pusher.go:89
↓ 1 callersFunctionPushTextWithDingDingWIthMoblie
推送文字到钉钉并@人
push/pusher.go:107
↓ 1 callersFunctionReadCheckInfoJsonToCheck
()
file/fileUtis.go:310
↓ 1 callersMethodSetConfig
(conf file.Config, checks []file.CheckInfo)
check_in/checkIn.go:84
↓ 1 callersFunctionTransResToMap
(res *http.Response)
check_in/checkIn.go:130
↓ 1 callersFunctioncronForCheckIn
每天定时打卡任务开启
main.go:45
↓ 1 callersFunctioncronForProduct
()
main.go:36
↓ 1 callersFunctionfilterMyselfProduct
过滤自己的商品
smzdm/smzdm.go:243
↓ 1 callersFunctionremoveByFilterRules
根据过滤规则,去除商品
smzdm/smzdm.go:167
↓ 1 callersFunctionreturnResult
(resMap map[string]interface{})
check_in/checkIn.go:98
↓ 1 callersFunctionsatisfy
根据规则判断符合规则的商品
smzdm/smzdm.go:205
↓ 1 callersFunctionsavePushed
保存推送商品,去重使用
smzdm/smzdm.go:233
↓ 1 callersFunctionshouldStop
根据条件 判断是否应该停止爬取
smzdm/smzdm.go:159
FunctionAddCheckInfoHandler
(w http.ResponseWriter, r *http.Request)
route.go:44
MethodAddUser
(user *User)
db/sqlite.go:57
FunctionCheckInHandler
(w http.ResponseWriter, r *http.Request)
route.go:64
FunctionHtmlHandler
(w http.ResponseWriter, r *http.Request)
route.go:25
FunctionIndexHandler
(w http.ResponseWriter, r *http.Request)
route.go:14
MethodPush
(content string, contentType string)
push/pusher.go:18
FunctionReadCheckInfoHandler
(w http.ResponseWriter, r *http.Request)
route.go:34
FunctionReadCheckInfoJsonToByte
()
file/fileUtis.go:289
FunctionReadPathConf
(path string)
file/fileUtis.go:179
MethodRun
()
check_in/checkIn.go:90
FunctionTestDemoCron
(t *testing.T)
trick/cron_test.go:8
FunctionTestDingPusher
图文推送
push/pusher_test.go:8
FunctionTestDingPusherMdWithMobiles
(t *testing.T)
push/pusher_test.go:59
FunctionTestDingPusherWithMobiles
@人员推送
push/pusher_test.go:42
FunctionTestDoCheckIn
(t *testing.T)
check_in/checkIn_test.go:9
FunctionTestGetGoods
(t *testing.T)
smzdm/smzdm_test.go:9
FunctionTestInputConfig
(t *testing.T)
file/fileUtils_test.go:28
FunctionTestNewMyTicker
(t *testing.T)
trick/cron_test.go:12
FunctionTestReadPushed
(t *testing.T)
file/fileUtils_test.go:8
FunctionTestWritePushed
(t *testing.T)
file/fileUtils_test.go:18
FunctionUpdateCheckInfoById
(id int, resultCode string, resultMsg string)
file/fileUtis.go:209
Functioninit
()
main.go:73
Functionmain
()
main.go:21
FunctionrequestSmzdm
推送商品任务
main.go:59
FunctiontestPrint
()
trick/cron_test.go:17