mirror of https://github.com/veypi/OneAuth.git
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.
25 lines
615 B
Go
25 lines
615 B
Go
//
|
|
// cfg.go
|
|
// Copyright (C) 2024 veypi <i@veypi.com>
|
|
// 2025-03-04 16:08:06
|
|
// Distributed under terms of the MIT license.
|
|
//
|
|
|
|
package cfg
|
|
|
|
import "time"
|
|
|
|
type Options struct {
|
|
DSN string `json:"dsn"` // Data Source Name
|
|
DB string `json:"db"` // DB type: mysql, postgres, sqlite
|
|
ID string `json:"id"`
|
|
Key string `json:"key"`
|
|
TokenExpire time.Duration `json:"token_expire"` // Token expiration time in seconds
|
|
}
|
|
|
|
var Config = &Options{
|
|
TokenExpire: time.Minute * 30,
|
|
ID: "test",
|
|
Key: "asdfghjklqwertyuiopzxcvbnm1234567890",
|
|
}
|