// // cfg.go // Copyright (C) 2024 veypi // 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.Second * 10, ID: "test", Key: "asdfghjklqwertyuiopzxcvbnm1234567890", DSN: "root:123456@tcp(127.0.0.1:3306)/test?charset=utf8&parseTime=True&loc=Local", DB: "mysql", }