Publish

This commit is contained in:
2023-11-18 14:30:35 +08:00
parent 61ab586f4f
commit 5ae31d8a07
10 changed files with 150 additions and 7 deletions

View File

@ -8,7 +8,7 @@ import (
"strings"
)
var C *AppConfig
var App *AppConfig
func ReadInConfig(root string) error {
cfg := &AppConfig{
@ -37,7 +37,7 @@ func ReadInConfig(root string) error {
return err
}
C = cfg
App = cfg
return nil
}

View File

@ -15,6 +15,8 @@ const (
)
type UpstreamConfig struct {
ID string `json:"id"`
Name string `json:"name"`
URI string `json:"uri"`
}