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

JUMEI_ARCH / go-plugins
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
options.go 348 Bytes
一键复制 编辑 原始数据 按行查看 历史
Asim Aslam 提交于 2018-05-31 12:07 . add dns srv selector
package dns
import (
"context"
"github.com/micro/go-micro/selector"
)
type domainKey struct{}
// Domain sets the dns domain for a service
func Domain(d string) selector.Option {
return func(o *selector.Options) {
if o.Context == nil {
o.Context = context.Background()
}
o.Context = context.WithValue(o.Context, domainKey{}, d)
}
}
Go
1
https://gitee.com/JMArch/go-plugins.git
git@gitee.com:JMArch/go-plugins.git
JMArch
go-plugins
go-plugins
v0.14.1

搜索帮助

53164aa7 5694891 3bd8fe86 5694891