2022-01-27 15:15:55 +08:00
|
|
|
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
|
|
|
|
|
//
|
|
|
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
|
|
|
// If a copy of the MIT was not distributed with this file,
|
|
|
|
|
// You can obtain one at https://github.com/gogf/gf.
|
|
|
|
|
|
2022-01-27 18:12:39 +08:00
|
|
|
package gsel
|
2022-01-24 23:33:56 +08:00
|
|
|
|
2022-01-27 18:12:39 +08:00
|
|
|
type builderWeight struct{}
|
2022-01-24 23:33:56 +08:00
|
|
|
|
2022-01-27 18:12:39 +08:00
|
|
|
func NewBuilderWeight() Builder {
|
|
|
|
|
return &builderWeight{}
|
|
|
|
|
}
|
2022-01-24 23:33:56 +08:00
|
|
|
|
2023-03-08 14:12:51 +08:00
|
|
|
func (*builderWeight) Name() string {
|
|
|
|
|
return "BalancerWeight"
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-27 18:12:39 +08:00
|
|
|
func (*builderWeight) Build() Selector {
|
|
|
|
|
return NewSelectorWeight()
|
2022-01-24 23:33:56 +08:00
|
|
|
}
|