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 builderRoundRobin struct{}
|
2022-01-24 23:33:56 +08:00
|
|
|
|
2022-01-27 18:12:39 +08:00
|
|
|
func NewBuilderRoundRobin() Builder {
|
|
|
|
|
return &builderRoundRobin{}
|
|
|
|
|
}
|
2022-01-24 23:33:56 +08:00
|
|
|
|
2023-03-08 14:12:51 +08:00
|
|
|
func (*builderRoundRobin) Name() string {
|
|
|
|
|
return "BalancerRoundRobin"
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-27 18:12:39 +08:00
|
|
|
func (*builderRoundRobin) Build() Selector {
|
|
|
|
|
return NewSelectorRoundRobin()
|
2022-01-24 23:33:56 +08:00
|
|
|
}
|