当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
2 Star 0 Fork 1

JUMEI_ARCH/go-plugins
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cache.go 537 Bytes
一键复制 编辑 原始数据 按行查看 历史
Asim 提交于 2016-04-26 20:11 . Add cache selector link
package cache
import (
"github.com/micro/go-micro/selector"
"github.com/micro/go-micro/selector/cache"
)
/*
Cache selector is a client side load balancer for go-micro.
This selector uses the registry Watcher to cache Selected services.
It uses random hashed load balancing to balance requests across services.
Implementation here https://godoc.org/github.com/micro/go-micro/selector/cache
We add a link here for completeness
*/
func NewSelector(opts ...selector.Option) selector.Selector {
return cache.NewSelector(opts...)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/JMArch/go-plugins.git
git@gitee.com:JMArch/go-plugins.git
JMArch
go-plugins
go-plugins
v0.2.1

搜索帮助