反向代理源站实现使用域名分组

This commit is contained in:
GoEdgeLab
2021-09-20 11:54:21 +08:00
parent a4d8c3a27f
commit 466d5e78fa
18 changed files with 431 additions and 186 deletions

View File

@@ -2,13 +2,21 @@ package serverconfigs
import "github.com/iwind/TeaGo/maps"
// 调度算法配置
// SchedulingConfig 调度算法配置
type SchedulingConfig struct {
Code string `yaml:"code" json:"code"` // 类型
Options maps.Map `yaml:"options" json:"options"` // 选项
}
// 获取新对象
// NewSchedulingConfig 获取新对象
func NewSchedulingConfig() *SchedulingConfig {
return &SchedulingConfig{}
}
// Clone 克隆
func (this *SchedulingConfig) Clone() *SchedulingConfig {
return &SchedulingConfig{
Code: this.Code,
Options: maps.NewMap(this.Options),
}
}