1
0
Fork 0
forked from goffee/cup

main #2

Merged
diana merged 49 commits from goffee/cup:main into main 2025-08-26 13:38:41 -04:00
2 changed files with 23 additions and 1 deletions
Showing only changes of commit 273b43f5e0 - Show all commits

20
config/queue.go Normal file
View file

@ -0,0 +1,20 @@
// Copyright (c) 2025 Zeni Kim <zenik@smarteching.com>
// Use of this source code is governed by MIT-style
// license that can be found in the LICENSE file.
package config
import "git.smarteching.com/goffee/core"
// Retrieve the main config for the Queue
func GetQueueConfig() core.QueueConfig {
//#####################################
//# Main configuration for Queue #####
//#####################################
return core.QueueConfig{
// For enabling and disabling the queue system
// set to true to enable it, set to false to disable
EnableQueue: false,
}
}

View file

@ -62,7 +62,9 @@ func main() {
registerGlobalHooks()
registerRoutes()
registerEvents()
registerQueues()
if config.GetQueueConfig().EnableQueue == true {
registerQueues()
}
if config.GetGormConfig().EnableGorm == true {
RunAutoMigrations()
}