This commit is contained in:
henry
2021-11-02 09:43:19 +08:00
parent 570bb3c772
commit 4734344985
78 changed files with 4798 additions and 0 deletions

16
app/init.go Normal file
View File

@ -0,0 +1,16 @@
package app
import (
"Edu/app/event"
"Edu/app/service"
"Edu/config"
)
func Init() {
// RedisHash存储/移除监听
service.Subscribe(config.EventForRedisHashProduce, event.NewRedisHashProduce())
service.Subscribe(config.EventForRedisHashDestroy, event.NewRedisHashDestroy())
// RedisList存储/移除监听
service.Subscribe(config.EventForRedisListProduce, event.NewRedisListProduce())
service.Subscribe(config.EventForRedisListDestroy, event.NewRedisListDestroy())
}