Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/a1667834841/smzdmForGo
/ functions
Functions
59 in github.com/a1667834841/smzdmForGo
⨍
Functions
59
◇
Types & classes
20
↓ 7 callers
Method
PushDingDing
钉钉推送者实现推送方法
push/pusher.go:26
↓ 3 callers
Function
ReadPusedInfo
读取已推送文章id 返回map
file/fileUtis.go:42
↓ 3 callers
Method
Start
启动定时器需要执行的任务
trick/cron.go:34
↓ 3 callers
Function
deserializeJson
(CheckInfoJson string)
route.go:94
↓ 3 callers
Function
wrapDataWithResult
(data string)
route.go:106
↓ 2 callers
Method
CheckInAllUsers
()
check_in/checkIn.go:39
↓ 2 callers
Function
DeserializeJson
(CheckInfoJson string)
file/fileUtis.go:242
↓ 2 callers
Function
GetSatisfiedGoods
获取商品 @return []product 符合条件的商品集合 @return []product 符合自己条件的商品集合
smzdm/smzdm.go:50
↓ 2 callers
Function
NewCheckIn
(dbPath string)
check_in/checkIn.go:23
↓ 2 callers
Function
NewMyTick
(interval int, f Fn)
trick/cron.go:26
↓ 2 callers
Function
ReadConf
输入命令行 写入配置文件 func InputCmd() { file, _ := exec.LookPath(os.Args[0]) path, _ := filepath.Abs(file) index := strings.LastIndex(path, string(os.PathSe
file/fileUtis.go:145
↓ 2 callers
Function
WriteCheckInfoJson
(chekInfos []CheckInfo)
file/fileUtis.go:254
↓ 2 callers
Function
WritePushedInfo
保存已推送文章id 到本地
file/fileUtis.go:77
↓ 2 callers
Method
doCheckIn
(user db.User)
check_in/checkIn.go:55
↓ 2 callers
Function
readCheckInfoJson
()
route.go:78
↓ 1 callers
Function
DemoCron
()
trick/cron.go:8
↓ 1 callers
Method
GetAllUsers
()
db/sqlite.go:75
↓ 1 callers
Function
GetGoods
GetGoods 获取商品集合 @param offset @return result 商品集合
smzdm/smzdm.go:125
↓ 1 callers
Method
InitTables
()
db/sqlite.go:43
↓ 1 callers
Function
NewDB
(dataSourceName string)
db/sqlite.go:24
↓ 1 callers
Function
PushProWithDingDing
推送商品到钉钉
push/pusher.go:55
↓ 1 callers
Function
PushTextWithDingDing
推送文字到钉钉
push/pusher.go:89
↓ 1 callers
Function
PushTextWithDingDingWIthMoblie
推送文字到钉钉并@人
push/pusher.go:107
↓ 1 callers
Function
ReadCheckInfoJsonToCheck
()
file/fileUtis.go:310
↓ 1 callers
Method
SetConfig
(conf file.Config, checks []file.CheckInfo)
check_in/checkIn.go:84
↓ 1 callers
Function
TransResToMap
(res *http.Response)
check_in/checkIn.go:130
↓ 1 callers
Function
cronForCheckIn
每天定时打卡任务开启
main.go:45
↓ 1 callers
Function
cronForProduct
()
main.go:36
↓ 1 callers
Function
filterMyselfProduct
过滤自己的商品
smzdm/smzdm.go:243
↓ 1 callers
Function
removeByFilterRules
根据过滤规则,去除商品
smzdm/smzdm.go:167
↓ 1 callers
Function
returnResult
(resMap map[string]interface{})
check_in/checkIn.go:98
↓ 1 callers
Function
satisfy
根据规则判断符合规则的商品
smzdm/smzdm.go:205
↓ 1 callers
Function
savePushed
保存推送商品,去重使用
smzdm/smzdm.go:233
↓ 1 callers
Function
shouldStop
根据条件 判断是否应该停止爬取
smzdm/smzdm.go:159
Function
AddCheckInfoHandler
(w http.ResponseWriter, r *http.Request)
route.go:44
Method
AddUser
(user *User)
db/sqlite.go:57
Function
CheckInHandler
(w http.ResponseWriter, r *http.Request)
route.go:64
Function
HtmlHandler
(w http.ResponseWriter, r *http.Request)
route.go:25
Function
IndexHandler
(w http.ResponseWriter, r *http.Request)
route.go:14
Method
Push
(content string, contentType string)
push/pusher.go:18
Function
ReadCheckInfoHandler
(w http.ResponseWriter, r *http.Request)
route.go:34
Function
ReadCheckInfoJsonToByte
()
file/fileUtis.go:289
Function
ReadPathConf
(path string)
file/fileUtis.go:179
Method
Run
()
check_in/checkIn.go:90
Function
TestDemoCron
(t *testing.T)
trick/cron_test.go:8
Function
TestDingPusher
图文推送
push/pusher_test.go:8
Function
TestDingPusherMdWithMobiles
(t *testing.T)
push/pusher_test.go:59
Function
TestDingPusherWithMobiles
@人员推送
push/pusher_test.go:42
Function
TestDoCheckIn
(t *testing.T)
check_in/checkIn_test.go:9
Function
TestGetGoods
(t *testing.T)
smzdm/smzdm_test.go:9
Function
TestInputConfig
(t *testing.T)
file/fileUtils_test.go:28
Function
TestNewMyTicker
(t *testing.T)
trick/cron_test.go:12
Function
TestReadPushed
(t *testing.T)
file/fileUtils_test.go:8
Function
TestWritePushed
(t *testing.T)
file/fileUtils_test.go:18
Function
UpdateCheckInfoById
(id int, resultCode string, resultMsg string)
file/fileUtis.go:209
Function
init
()
main.go:73
Function
main
()
main.go:21
Function
requestSmzdm
推送商品任务
main.go:59
Function
testPrint
()
trick/cron_test.go:17