You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/cfg/cfg.go

26 lines
472 B
Go

11 months ago
//
// cfg.go
// Copyright (C) 2024 veypi <i@veypi.com>
// 2025-03-04 16:08:06
// Distributed under terms of the MIT license.
//
package cfg
6 months ago
import (
1 week ago
"github.com/veypi/vigo/contrib/config"
6 months ago
)
10 months ago
type Options struct {
1 week ago
DSN string `json:"dsn"` // Data Source Name
DB string `json:"db"` // DB type: mysql, postgres, sqlite
Redis config.Redis
Key config.Key `json:"key"`
SMS *SMSConfig `json:"sms"`
11 months ago
}
var Config = &Options{
1 week ago
DB: "sqlite",
SMS: defaultSMS(),
}