github.com/gogf/gf/v2@v2.7.4/net/gsel/gsel_builder_least_connection.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/gogf/gf. 6 7 package gsel 8 9 type builderLeastConnection struct{} 10 11 func NewBuilderLeastConnection() Builder { 12 return &builderLeastConnection{} 13 } 14 15 func (*builderLeastConnection) Name() string { 16 return "BalancerLeastConnection" 17 } 18 19 func (*builderLeastConnection) Build() Selector { 20 return NewSelectorLeastConnection() 21 }