mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-03-09 14:05:38 +08:00
反向代理源站实现使用域名分组
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user