27 lines
629 B
Go
27 lines
629 B
Go
//
|
|
// cfg.go
|
|
// Copyright (C) 2024 veypi <i@veypi.com>
|
|
// 2025-02-27 19:32:09
|
|
// Distributed under terms of the MIT license.
|
|
//
|
|
|
|
package cfg
|
|
|
|
type config struct {
|
|
Host string `json:"host"`
|
|
Port int `json:"port"`
|
|
LoggerPath string `json:"logger_path,omitempty"`
|
|
LoggerLevel string `json:"logger_level,omitempty"`
|
|
DSN string `json:"dsn"`
|
|
DB string `json:"db"`
|
|
}
|
|
|
|
var Config = &config{
|
|
Host: "0.0.0.0",
|
|
Port: 5002,
|
|
LoggerPath: "",
|
|
LoggerLevel: "debug",
|
|
DSN: "dev:20240309@tcp(127.0.0.1:3306)/testb?charset=utf8&parseTime=True&loc=Local",
|
|
DB: "mysql",
|
|
}
|