Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnableSQLite3 bool Database DatabaseConfig )
View Source
var ( CustomPath string = "custom" CustomConfigName string = "config" CustomConfigPaths []string = []string{".", "config"} CustomConfigType string = "yaml" UsedConfigFile string = "config.yaml" IsWindows bool AppName string AppPath string AppWorkPath string AppDataPath string AppURL string AppSubURL string ServerMode string Protocol string Domain string HTTPAddr string HTTPPort string CertFile string KeyFile string EnableLetsEncrypt bool LetsEncryptTOS bool LetsEncryptDir string LetsEncryptHost []string EnableGzip bool StaticRootPath string AvatarMaxWidth int AvatarMaxHeight int AvatarUploadPath string FileUploadPath string API struct { DefaultPagingSize int MaxPagingSize int } PasswordComplexity []string )
View Source
var ( CacheService = struct { Cache }{ Cache: Cache{ Enabled: true, Adapter: "memory", Interval: 60 * time.Second, TTL: 24 * time.Hour, }, } )
View Source
var ( LFS = struct { Storage }{} )
Functions ¶
func NewServices ¶
func NewServices()
func NewSetting ¶
func NewSetting()
func SaveSetting ¶
func SaveSetting()
func SetCustomPath ¶
func SetCustomPath()
Types ¶
type DatabaseConfig ¶
type Mailer ¶
type Mailer struct { QueueLength int SubjectPrefix string SendAsPlainText bool From string FromName string FromEmail string //SMTP Host string Username string Password string SkipVerify bool UseCertificate bool CertFile string KeyFile string IsTLSEnable bool }
var (
MailerService *Mailer
)
type MetricsService ¶
var (
Metrics *MetricsService
)
type QueueSetting ¶
type QueueSetting struct { Type string Name string Length int BatchLength int QueueName string BoostWorker int MaxWorkers int Workers int BlockTimeout time.Duration BoostTimeout time.Duration }
var (
Queue *QueueSetting
)
func GetQueueSetting ¶
func GetQueueSetting(name string) *QueueSetting
Click to show internal directories.
Click to hide internal directories.