forked from goffee/core
42 lines
770 B
Go
42 lines
770 B
Go
// Copyright 2021 Harran Ali <harran.m@gmail.com>. All rights reserved.
|
|
// Copyright (c) 2024 Zeni Kim <zenik@smarteching.com>
|
|
// Copyright (c) 2026 Jose Cely <me@jacs.guru>
|
|
// Use of this source code is governed by MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package core
|
|
|
|
import "time"
|
|
|
|
type EnvFileConfig struct {
|
|
UseDotEnvFile bool
|
|
}
|
|
|
|
type RequestConfig struct {
|
|
MaxUploadFileSize int
|
|
}
|
|
|
|
type JWTConfig struct {
|
|
SecretKey string
|
|
Lifetime int
|
|
}
|
|
|
|
type GormConfig struct {
|
|
EnableGorm bool
|
|
}
|
|
|
|
type QueueConfig struct {
|
|
EnableQueue bool
|
|
Concurrency int
|
|
Queues map[string]int
|
|
}
|
|
|
|
type SchedulerConfig struct {
|
|
EnableScheduler bool
|
|
SchedulerInterval time.Duration
|
|
SchedulerRateLimit int
|
|
}
|
|
|
|
type CacheConfig struct {
|
|
EnableCache bool
|
|
}
|