25 lines
919 B
Go
25 lines
919 B
Go
// Copyright 2023 Harran Ali <harran.m@gmail.com>. All rights reserved.
|
|
// Use of this source code is governed by MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"git.smarteching.com/goffee/core"
|
|
"git.smarteching.com/goffee/todoapp/events"
|
|
"git.smarteching.com/goffee/todoapp/events/eventjobs"
|
|
)
|
|
|
|
// Register events
|
|
func registerEvents() {
|
|
eventsManager := core.ResolveEventsManager()
|
|
//########################################
|
|
//# events registration #####
|
|
//########################################
|
|
|
|
// register your event here ...
|
|
eventsManager.Register(events.USER_REGISTERED, eventjobs.SendWelcomeEmail)
|
|
eventsManager.Register(events.USER_REGISTERED, eventjobs.TestEvent)
|
|
eventsManager.Register(events.USER_PASSWORD_RESET_REQUESTED, eventjobs.SendResetPasswordEmail)
|
|
eventsManager.Register(events.PASSWORD_CHANGED, eventjobs.SendPasswordChangedEmail)
|
|
}
|