Add configuration and other related code, and add automatic build related frameworks. Currently, the version is not available
This commit is contained in:
0
internal/service/config.go
Normal file
0
internal/service/config.go
Normal file
17
internal/service/struct.go
Normal file
17
internal/service/struct.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package service
|
||||
|
||||
// Config represents the full configuration structure
|
||||
type Config struct {
|
||||
Server struct {
|
||||
Host string `json:"host"`
|
||||
Port int `json:"port"`
|
||||
} `json:"server"`
|
||||
Database struct {
|
||||
Host string `json:"host"`
|
||||
Port int `json:"port"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Database string `json:"database"`
|
||||
Prefix string `json:"prefix"`
|
||||
} `json:"database"`
|
||||
}
|
||||
Reference in New Issue
Block a user