init
This commit is contained in:
16
app/init.go
Normal file
16
app/init.go
Normal 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())
|
||||
}
|
Reference in New Issue
Block a user