github.com/wangyougui/gf/v2@v2.6.5/net/gsel/gsel_builder_weight.go (about) 1 // Copyright GoFrame Author(https://goframe.org). All Rights Reserved. 2 // 3 // This Source Code Form is subject to the terms of the MIT License. 4 // If a copy of the MIT was not distributed with this file, 5 // You can obtain one at https://github.com/wangyougui/gf. 6 7 package gsel 8 9 type builderWeight struct{} 10 11 func NewBuilderWeight() Builder { 12 return &builderWeight{} 13 } 14 15 func (*builderWeight) Name() string { 16 return "BalancerWeight" 17 } 18 19 func (*builderWeight) Build() Selector { 20 return NewSelectorWeight() 21 }