// Copyright 2023 Harran Ali . 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) }