Files
gf/net/gsel/gsel_builder_weight.go

22 lines
499 B
Go
Raw Permalink Normal View History

// 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.
package gsel
2022-01-24 23:33:56 +08:00
type builderWeight struct{}
2022-01-24 23:33:56 +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"
}
func (*builderWeight) Build() Selector {
return NewSelectorWeight()
2022-01-24 23:33:56 +08:00
}