Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) ServiceDiscoveryRegistry implementation #491

Closed
wants to merge 141 commits into from
Closed
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
f09c991
Add extensiong for metadata service
Apr 15, 2020
f1de848
Merge pull request #484 from apache/1.4
wongoo Apr 20, 2020
ad18357
Merge pull request #1 from apache/feature/dubbo-2.7.5
lzp0412 Apr 22, 2020
5811136
Merge remote-tracking branch 'origin/feature/dubbo-2.7.5' into featur…
Apr 22, 2020
ae7d706
support service discovery registry
Apr 24, 2020
8022392
fix synthesizer bug
Apr 24, 2020
9cbee58
add .asf.yaml to change gitbox behaviour
htynkn Apr 29, 2020
8a3c02c
Update .asf.yaml
htynkn Apr 29, 2020
71326c9
Merge branch 'feature/dubbo-2.7.5' of https://github.com/lzp0412/dubb…
May 1, 2020
682f405
Add dynamic
May 1, 2020
a5da721
rename service => service discovery
May 1, 2020
8b720aa
Merge develop
May 1, 2020
3aa0082
Merge pull request #2 from flycash/2.7.5-bk
lzp0412 May 1, 2020
569e2b6
1、add comments
May 1, 2020
212d886
merge develop
May 2, 2020
ffe69ca
Merge branch 'feature/dubbo-2.7.5' of github.com:apache/dubbo-go into…
May 2, 2020
08eb340
Export get BaseConfig
May 2, 2020
bcda4de
fix review comments
May 2, 2020
698c2b2
Merge remote-tracking branch 'remotes/dubbo-go/feature/dubbo-2.7.5' i…
May 2, 2020
4b8b4d7
Refactor service-discovery
May 4, 2020
1113bf1
Merge 2.7.5
May 4, 2020
3f1a52b
Merge pull request #4 from flycash/2.7.5-bk
lzp0412 May 4, 2020
731020d
add comments for directory
May 5, 2020
2264cda
add comments for directory
May 5, 2020
a784557
Add tests
May 5, 2020
266e0b6
Add extensiong for metadata service
Apr 15, 2020
ed5693f
Merge pull request #5 from flycash/2.7.5-bk
lzp0412 May 5, 2020
fc6bdfa
Modify the comment of Process method
May 6, 2020
ea89aec
add the comment of ConsistentHash
May 7, 2020
861a9cd
provider can get attachment in ctx
pantianying May 8, 2020
c6be554
fix
pantianying May 8, 2020
9fb89ed
add the comment of ConsistentHash
May 10, 2020
7df8822
fix
May 10, 2020
e73f3bf
fix impl_test error
May 11, 2020
2e0e802
delete meaningless code
pantianying May 12, 2020
393d12a
fix import error
May 12, 2020
aaeabc6
fix import error
May 12, 2020
d82e10f
fix ut
pantianying May 14, 2020
84b38fe
Merge pull request #508 from pantianying/provider_getattachment_in_co…
AlexStocks May 15, 2020
544036a
Merge pull request #1 from apache/develop
xianlezheng May 16, 2020
ebb1b0c
Fix “compile errors caused by unsupported import packages”
xianlezheng May 16, 2020
f87a292
fix
May 17, 2020
cb9045c
Fix “uncheck travis rules of go fmt”
xianlezheng May 17, 2020
1433347
replace Uint32Slice
May 17, 2020
b22fc9f
replace Uint32Slice
May 17, 2020
99f6cf4
Merge pull request #515 from xianlezheng/develop
flycash May 17, 2020
1737904
Merge pull request #506 from aliiohs/featue/addCommentForConsistentHash
AlexStocks May 18, 2020
dd2ff3e
remove lock from url
May 18, 2020
0f64e2c
format code
May 19, 2020
7a256e4
Merge pull request #4 from apache/develop
sxllwx May 19, 2020
ceba6d7
Wait for test
sxllwx May 19, 2020
6b53a98
delete lot of stage, direct used one-stage
sxllwx May 19, 2020
6bce310
push to test
sxllwx May 19, 2020
5835e3c
reinit integrate test case
sxllwx May 19, 2020
1c20fea
add main func for protocol/grpc/protoc-gen-dubbo/examples
sxllwx May 19, 2020
496610a
Add integrate-test
sxllwx May 19, 2020
47b9666
Fix travis integrate test case filepath mistake
sxllwx May 19, 2020
b6a5888
Drop ci-consumer unused package
sxllwx May 19, 2020
c109d8f
Add ci used current commit id
sxllwx May 19, 2020
9a68bb4
Fix dockerfile mistake, and fast fail
sxllwx May 19, 2020
385f267
Add more rich debug log
sxllwx May 19, 2020
a14978e
Fix to used travis env direct
sxllwx May 19, 2020
4866c0c
Add check travis env
sxllwx May 19, 2020
eb46ba9
Fix dockerfile and build the latest code
sxllwx May 19, 2020
7a225fc
Sync latest travis config
sxllwx May 19, 2020
06a543b
Drop ci-consumer go.sum
sxllwx May 19, 2020
f83dade
Fix docker build multi args
sxllwx May 19, 2020
dc27a11
Delete used debug info
sxllwx May 19, 2020
df1a43d
Finish code
May 19, 2020
8e9c2b2
Fix mistake according comment
sxllwx May 20, 2020
a519203
Update go-client config
sxllwx May 20, 2020
b39f876
Update go-server config
sxllwx May 20, 2020
ea81831
Merge pull request #520 from sxllwx/docker_ci
AlexStocks May 20, 2020
3afc4ba
Merge remote-tracking branch 'remotes/upstream/develop' into feature/…
May 20, 2020
71517ef
change go.mod
May 20, 2020
d1e5463
change comments
May 21, 2020
1df1165
feat: fix gitee code analysis shadow err
May 21, 2020
6f326a5
Add comments for common directory
watermelo May 21, 2020
8ffc312
Opt: optimize url to string
watermelo May 21, 2020
8822f2c
fmt the codes
watermelo May 21, 2020
f07be5c
Merge pull request #502 from aliiohs/feature/addCommentForMethod
zouyx May 21, 2020
8581202
Fix ci bug
sxllwx May 21, 2020
60ff0c4
Merge pull request #5 from apache/develop
sxllwx May 21, 2020
9190c53
Merge branch 'develop' into docker_ci
sxllwx May 21, 2020
f9368d5
Add extra logic for Dockerfile
sxllwx May 21, 2020
01ba749
Fix shell script name
sxllwx May 21, 2020
b0a1a4e
Fix Dockerfile BUG
sxllwx May 21, 2020
fd9fb38
Finish docker integrate ci
sxllwx May 21, 2020
cbb469e
Merge pull request #532 from sxllwx/docker_ci
sxllwx May 21, 2020
4c2907b
Revert "Fix docker ci bug"
sxllwx May 21, 2020
681a3fd
Merge pull request #533 from apache/revert-532-docker_ci
zouyx May 21, 2020
dcb4cc2
Merge pull request #6 from apache/develop
sxllwx May 21, 2020
bc76c31
local test pass
sxllwx May 21, 2020
455eb4d
local test pass, and sync latest develop code
sxllwx May 21, 2020
2a9b5fe
Merge pull request #534 from sxllwx/docker_ci
zouyx May 22, 2020
168f944
Merge pull request #531 from watermelo/featue/optUrlToString
AlexStocks May 22, 2020
47bba48
Opt: optimize error handling
watermelo May 22, 2020
def16af
Modify the order of import packages
watermelo May 22, 2020
2ffbe96
Mod: modify the comments in the directory of common
watermelo May 22, 2020
1800a67
feat: change %s to %+v
May 22, 2020
fdf51a1
Merge pull request #529 from georgehao/feat/issue514-fix-shadow-analysis
zouyx May 22, 2020
ed4e7ba
Modify the order of import packages
watermelo May 22, 2020
d3540d3
Merge branch 'featue/optLog' of https://github.com/watermelo/dubbo-go…
watermelo May 22, 2020
6489acf
Mod: modify inappropriate comments after review
watermelo May 22, 2020
f763779
Merge develop and resolve conflict
May 23, 2020
d2eee54
Merge pull request #519 from flycash/remove-url-lock
flycash May 23, 2020
67e8e41
add attribute into Invocation
cvictory May 24, 2020
9659d25
Mod: modify inappropriate comments after review & merge develop branch
watermelo May 24, 2020
5246e56
add default value of attribute
cvictory May 24, 2020
51ec3df
Mod: modify inappropriate comments after review & merge develop branch
watermelo May 24, 2020
d0a770f
Merge branch 'featue/addCommentForCommon' of https://github.com/water…
watermelo May 24, 2020
9432c7a
Merge pull request #530 from watermelo/featue/addCommentForCommon
zouyx May 24, 2020
8c8c95c
Merge pull request #536 from watermelo/featue/optLog
fangyincheng May 25, 2020
41c9d89
fix review issue: add default construct in
cvictory May 28, 2020
39a84d9
Merge pull request #537 from cvictory/attribute_into_invocation
AlexStocks May 28, 2020
7c87c2a
Merge branch 'feature/dubbo-2.7.5' of https://github.com/apache/dubbo…
flycash May 29, 2020
bdd9b71
Add UT
flycash May 29, 2020
198ddc3
Merge nacos-meta
flycash May 29, 2020
7e912e7
Merge pull request #6 from flycash/2.7.5
lzp0412 May 30, 2020
b968f7b
Add unregiste implementation
flycash May 30, 2020
517b521
Add comments for config_center
z2z23n0 May 29, 2020
7d4f1ed
Merge pull request #545 from YuzeZhang/master
zouyx May 30, 2020
cc4d563
server start successfully
flycash May 30, 2020
bfb89b5
Merge pull request #8 from flycash/2.7.5
lzp0412 May 30, 2020
035d7d9
Fix bug: using EventPublishServiceDiscovery
flycash May 31, 2020
f993803
Merge develop
flycash May 31, 2020
34775e5
Merge pull request #9 from flycash/2.7.5-bk
lzp0412 May 31, 2020
b760621
Add events and eventListener
flycash Jun 2, 2020
ed6b59b
Add events and eventListener
flycash Jun 2, 2020
e2da137
Add customizer
flycash Jun 3, 2020
59eee39
Add customizer
flycash Jun 3, 2020
2997c11
refactor MetadataService
flycash Jun 5, 2020
16b6500
it can be found by java consumer
flycash Jun 7, 2020
a7d16a0
Resolve conflict
flycash Jun 7, 2020
3984ffa
Merge branch 'feature/dubbo-2.7.5' into 2.7.5-bk
lzp0412 Jun 7, 2020
41615c3
Merge pull request #11 from flycash/2.7.5-bk
lzp0412 Jun 7, 2020
066dcdd
Add metadata service factory
flycash Jun 8, 2020
61a5188
Merge branch '2.7.5-bk' of github.com:flycash/dubbo-go into 2.7.5-bk
flycash Jun 8, 2020
658c0b9
Merge pull request #12 from flycash/2.7.5-bk
lzp0412 Jun 9, 2020
9d5d9e3
Invoke dubbo client success
flycash Jun 10, 2020
7019888
Merge pull request #13 from flycash/2.7.5-bk
lzp0412 Jun 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion common/constant/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ const (
KEY_SEPARATOR = ":"
DEFAULT_PATH_TAG = "metadata"
KEY_REVISON_PREFIX = "revision"
PATH_SEPARATOR = "/"

// metadata service
METADATA_SERVICE_NAME = "org.apache.dubbo.metadata.MetadataService"
Expand Down
2 changes: 1 addition & 1 deletion common/extension/service_instance_selector_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package extension

import (
"github.com/apache/dubbo-go/registry/service/instance"
"github.com/apache/dubbo-go/registry/servicediscovery/instance"
perrors "github.com/pkg/errors"
)

Expand Down
58 changes: 58 additions & 0 deletions common/observer/dispatcher/mock_event_dispatcher.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package dispatcher

import (
"github.com/apache/dubbo-go/common/observer"
)

// MockEventDispatcher will do nothing.
// It is only used by tests
// Now the implementation doing nothing,
// But you can modify this if needed
type MockEventDispatcher struct {
}

// AddEventListener do nothing
func (m MockEventDispatcher) AddEventListener(listener observer.EventListener) {
}

// AddEventListeners do nothing
func (m MockEventDispatcher) AddEventListeners(listenersSlice []observer.EventListener) {
}

// RemoveEventListener do nothing
func (m MockEventDispatcher) RemoveEventListener(listener observer.EventListener) {
}

// RemoveEventListeners do nothing
func (m MockEventDispatcher) RemoveEventListeners(listenersSlice []observer.EventListener) {
}

// GetAllEventListeners return empty list
func (m MockEventDispatcher) GetAllEventListeners() []observer.EventListener {
return make([]observer.EventListener, 0)
}

// RemoveAllEventListeners do nothing
func (m MockEventDispatcher) RemoveAllEventListeners() {
}

// Dispatch do nothing
func (m MockEventDispatcher) Dispatch(event observer.Event) {
}
2 changes: 1 addition & 1 deletion common/rpc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (s *Service) Name() string {
return s.name
}

// RcvrType ...
// RcvrType get @s.rcvrType.
func (s *Service) RcvrType() reflect.Type {
return s.rcvrType
}
Expand Down
44 changes: 9 additions & 35 deletions config/config_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,28 +82,7 @@ func checkApplicationName(config *ApplicationConfig) {
}
}

// Load Dubbo Init
func Load() {

// init router
if confRouterFile != "" {
if errPro := RouterInit(confRouterFile); errPro != nil {
log.Printf("[routerConfig init] %#v", errPro)
}
}

var eventDispatcherType string
if consumerConfig != nil {
eventDispatcherType = consumerConfig.eventDispatcherType
}
// notice consumerConfig.eventDispatcherType will be replaced
if providerConfig != nil {
eventDispatcherType = providerConfig.eventDispatcherType
}
// init EventDispatcher should before everything
extension.SetAndInitGlobalDispatcher(eventDispatcherType)

// reference config
func loadConsumerConfig() {
if consumerConfig == nil {
logger.Warnf("consumerConfig is nil!")
return
Expand All @@ -124,6 +103,8 @@ func Load() {
metricConfig = consumerConfig.MetricConfig
applicationConfig = consumerConfig.ApplicationConfig

extension.SetAndInitGlobalDispatcher(consumerConfig.eventDispatcherType)

checkApplicationName(consumerConfig.ApplicationConfig)
if err := configCenterRefreshConsumer(); err != nil {
logger.Errorf("[consumer config center refresh] %#v", err)
Expand Down Expand Up @@ -200,6 +181,8 @@ func loadProviderConfig() {
metricConfig = providerConfig.MetricConfig
applicationConfig = providerConfig.ApplicationConfig

extension.SetAndInitGlobalDispatcher(consumerConfig.eventDispatcherType)

checkApplicationName(providerConfig.ApplicationConfig)
if err := configCenterRefreshProvider(); err != nil {
logger.Errorf("[provider config center refresh] %#v", err)
Expand All @@ -211,19 +194,10 @@ func loadProviderConfig() {
logger.Warnf("%s does not exist!", key)
continue
}
checkRegistries(providerConfig.Registries, providerConfig.Registry)
for key, svs := range providerConfig.Services {
rpcService := GetProviderService(key)
if rpcService == nil {
logger.Warnf("%s does not exist!", key)
continue
}
svs.id = key
svs.Implement(rpcService)
svs.Protocols = providerConfig.Protocols
if err := svs.Export(); err != nil {
panic(fmt.Sprintf("service %s export failed! err: %#v", key, err))
}
svs.id = key
svs.Implement(rpcService)
if err := svs.Export(); err != nil {
panic(fmt.Sprintf("service %s export failed! err: %#v", key, err))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, new guy, pls use %+v for error to handle nil-error or self-defined error.

}
}
}
Expand Down
18 changes: 18 additions & 0 deletions config/service_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,24 @@ func NewServiceConfig(id string, context context.Context) *ServiceConfig {
}
}

// Get Random Port
func getRandomPort(protocolConfigs []*ProtocolConfig) *list.List {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this work has been done by Mr Zouyx. why u do it again?

ports := list.New()
for _, proto := range protocolConfigs {
if len(proto.Port) > 0 {
continue
}

tcp, err := gxnet.ListenOnTCPRandomPort(proto.Ip)
if err != nil {
panic(perrors.New(fmt.Sprintf("Get tcp port error,err is {%v}", err)))
}
defer tcp.Close()
ports.PushBack(strings.Split(tcp.Addr().String(), ":")[1])
}
return ports
}

// InitExported will set exported as false atom bool
func (c *ServiceConfig) InitExported() {
c.exported = atomic.NewBool(false)
Expand Down
5 changes: 5 additions & 0 deletions config/service_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ import (
"testing"
)

import (
gxnet "github.com/dubbogo/gost/net"
"github.com/stretchr/testify/assert"
)

import (
"go.uber.org/atomic"
)
Expand Down
25 changes: 21 additions & 4 deletions config_center/nacos/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ import (
"github.com/apache/dubbo-go/config_center/parser"
)

const nacosClientName = "nacos config_center"
const (
nacosClientName = "nacos config_center"
maxKeysNum = 9999
)

type nacosDynamicConfiguration struct {
url *common.URL
Expand Down Expand Up @@ -108,9 +111,23 @@ func (n *nacosDynamicConfiguration) PublishConfig(key string, group string, valu

// GetConfigKeysByGroup will return all keys with the group
func (n *nacosDynamicConfiguration) GetConfigKeysByGroup(group string) (*gxset.HashSet, error) {
// TODO (the golang client of nacos does not support batch API)
// we should build a issue and then think about how to resolve this problem
return nil, perrors.New("unsupport operation, wait for implement")
group = n.resolvedGroup(group)
page, err := (*n.client.Client()).SearchConfig(vo.SearchConfigParm{
Search: "accurate",
Group: group,
PageNo: 1,
// actually it's impossible for user to create 9999 application under one group
PageSize: maxKeysNum,
})

result := gxset.NewSet()
if err != nil {
return result, perrors.WithMessage(err, "can not find the client config")
}
for _, itm := range page.PageItems {
result.Add(itm.Content)
}
return result, nil
}

// GetRule Get router rule
Expand Down
30 changes: 29 additions & 1 deletion config_center/nacos/impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,34 @@ func Test_GetConfig(t *testing.T) {
assert.NoError(t, err)
}

func TestNacosDynamicConfiguration_GetConfigKeysByGroup(t *testing.T) {
data := `
{
"PageItems": [
{
"Content": "application"
}
]
}
`
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(data))
}))

nacosURL := strings.ReplaceAll(ts.URL, "http", "registry")
regurl, _ := common.NewURL(nacosURL)
nacosConfiguration, err := newNacosDynamicConfiguration(&regurl)
assert.NoError(t, err)

nacosConfiguration.SetParser(&parser.DefaultConfigurationParser{})

configs, err := nacosConfiguration.GetConfigKeysByGroup("dubbo")
assert.Nil(t, err)
assert.Equal(t, 1, configs.Size())
assert.True(t, configs.Contains("application"))

}

func TestNacosDynamicConfiguration_PublishConfig(t *testing.T) {
nacos, err := initNacosData(t)
assert.Nil(t, err)
Expand All @@ -109,7 +137,7 @@ func Test_AddListener(t *testing.T) {
}

func Test_RemoveListener(t *testing.T) {
//TODO not supported in current go_nacos_sdk version
// TODO not supported in current go_nacos_sdk version
}

type mockDataListener struct {
Expand Down
19 changes: 4 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
module github.com/apache/dubbo-go

require (
github.com/Workiva/go-datastructures v1.0.52
github.com/Workiva/go-datastructures v1.0.50
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190802083043-4cd0c391755e // indirect
github.com/apache/dubbo-go-hessian2 v1.5.0
github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23 // indirect
github.com/coreos/bbolt v1.3.3 // indirect
github.com/coreos/etcd v3.3.13+incompatible
github.com/coreos/go-semver v0.3.0 // indirect
Expand All @@ -16,48 +14,39 @@ require (
github.com/dubbogo/go-zookeeper v1.0.0
github.com/dubbogo/gost v1.9.0
github.com/emicklei/go-restful/v3 v3.0.0
github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 // indirect
github.com/go-errors/errors v1.0.1 // indirect
github.com/go-resty/resty/v2 v2.1.0
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
github.com/golang/mock v1.3.1
github.com/golang/protobuf v1.3.2
github.com/google/btree v1.0.0 // indirect
github.com/gotestyourself/gotestyourself v2.2.0+incompatible
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.9.5 // indirect
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645
github.com/hashicorp/consul v1.5.3
github.com/hashicorp/consul/api v1.1.0
github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869 // indirect
github.com/jinzhu/copier v0.0.0-20190625015134-976e0346caa8
github.com/jonboulle/clockwork v0.1.0 // indirect
github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8 // indirect
github.com/juju/testing v0.0.0-20191001232224-ce9dec17d28b // indirect
github.com/lestrrat/go-envload v0.0.0-20180220120943-6ed08b54a570 // indirect
github.com/lestrrat/go-file-rotatelogs v0.0.0-20180223000712-d3151e2a480f // indirect
github.com/lestrrat/go-strftime v0.0.0-20180220042222-ba3bf9c1d042 // indirect
github.com/magiconair/properties v1.8.1
github.com/mitchellh/mapstructure v1.1.2
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
github.com/nacos-group/nacos-sdk-go v0.0.0-20191128082542-fe1b325b125c
github.com/nacos-group/nacos-sdk-go v0.3.1
github.com/opentracing/opentracing-go v1.1.0
github.com/pkg/errors v0.8.1
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.1.0
github.com/satori/go.uuid v1.2.0
github.com/smartystreets/goconvey v0.0.0-20190710185942-9d28bd7c0945 // indirect
github.com/soheilhy/cmux v0.1.4 // indirect
github.com/stretchr/testify v1.5.1
github.com/tebeka/strftime v0.1.3 // indirect
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect
github.com/toolkits/concurrent v0.0.0-20150624120057-a4371d70e3e3 // indirect
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
github.com/zouyx/agollo v0.0.0-20191114083447-dde9fc9f35b8
go.etcd.io/bbolt v1.3.3 // indirect
go.etcd.io/etcd v3.3.13+incompatible
go.uber.org/atomic v1.4.0
go.uber.org/zap v1.10.0
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
google.golang.org/grpc v1.22.1
gopkg.in/yaml.v2 v2.2.2
k8s.io/api v0.0.0-20190325185214-7544f9db76f6
Expand Down
15 changes: 10 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ github.com/SermoDigital/jose v0.0.0-20180104203859-803625baeddc h1:LkkwnbY+S8Wmw
github.com/SermoDigital/jose v0.0.0-20180104203859-803625baeddc/go.mod h1:ARgCUhI1MHQH+ONky/PAtmVHQrP5JlGY0F3poXOp/fA=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
github.com/Workiva/go-datastructures v1.0.52 h1:PLSK6pwn8mYdaoaCZEMsXBpBotr4HHn9abU0yMQt0NI=
github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA=
github.com/Workiva/go-datastructures v1.0.50 h1:slDmfW6KCHcC7U+LP3DDBbm4fqTwZGn1beOFPfGaLvo=
github.com/Workiva/go-datastructures v1.0.50/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA=
github.com/abdullin/seq v0.0.0-20160510034733-d5467c17e7af h1:DBNMBMuMiWYu0b+8KMJuWmfCkcxl09JwdlqwDZZ6U14=
github.com/abdullin/seq v0.0.0-20160510034733-d5467c17e7af/go.mod h1:5Jv4cbFiHJMsVxt52+i0Ha45fjshj6wxYr1r19tB9bw=
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 h1:rFw4nCn9iMW+Vajsk51NtYIcwSTkXr+JGrMd36kTDJw=
Expand All @@ -37,6 +37,8 @@ github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuy
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190802083043-4cd0c391755e h1:MSuLXx/mveDbpDNhVrcWTMeV4lbYWKcyO4rH+jAxmX0=
github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190802083043-4cd0c391755e/go.mod h1:myCDvQSzCW+wB1WAlocEru4wMGJxy+vlxHdhegi1CDQ=
github.com/aliyun/alibaba-cloud-sdk-go v1.61.18 h1:zOVTBdCKFd9JbCKz9/nt+FovbjPFmb7mUnp8nH9fQBA=
github.com/aliyun/alibaba-cloud-sdk-go v1.61.18/go.mod h1:v8ESoHo4SyHmuB4b1tJqDHxfTGEciD+yhvOU/5s1Rfk=
github.com/aliyun/aliyun-oss-go-sdk v0.0.0-20190307165228-86c17b95fcd5/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8=
github.com/apache/dubbo-go-hessian2 v1.5.0 h1:fzulDG5G7nX0ccgKdiN9XipJ7tZ4WXKgmk4stdlDS6s=
github.com/apache/dubbo-go-hessian2 v1.5.0/go.mod h1:VwEnsOMidkM1usya2uPfGpSLO9XUF//WQcWn3y+jFz8=
Expand Down Expand Up @@ -111,9 +113,8 @@ github.com/dubbogo/getty v1.3.5/go.mod h1:T55vN8Q6tZjf2AQZiGmkujneD3LfqYbv2b3Qja
github.com/dubbogo/go-zookeeper v1.0.0 h1:RsYdlGwhDW+iKXM3eIIcvt34P2swLdmQfuIJxsHlGoM=
github.com/dubbogo/go-zookeeper v1.0.0/go.mod h1:fn6n2CAEer3novYgk9ULLwAjuV8/g4DdC2ENwRb6E+c=
github.com/dubbogo/gost v1.5.1/go.mod h1:pPTjVyoJan3aPxBPNUX0ADkXjPibLo+/Ib0/fADXSG8=
github.com/dubbogo/gost v1.5.2/go.mod h1:pPTjVyoJan3aPxBPNUX0ADkXjPibLo+/Ib0/fADXSG8=
github.com/dubbogo/gost v1.8.0 h1:9ACbQe5OwMjqtinQcNJC5xp16kky27OsfSGw5L9A6vw=
github.com/dubbogo/gost v1.8.0/go.mod h1:pPTjVyoJan3aPxBPNUX0ADkXjPibLo+/Ib0/fADXSG8=
github.com/dubbogo/gost v1.9.0 h1:UT+dWwvLyJiDotxJERO75jB3Yxgsdy10KztR5ycxRAk=
github.com/dubbogo/gost v1.9.0/go.mod h1:pPTjVyoJan3aPxBPNUX0ADkXjPibLo+/Ib0/fADXSG8=
github.com/duosecurity/duo_api_golang v0.0.0-20190308151101-6c680f768e74 h1:2MIhn2R6oXQbgW5yHfS+d6YqyMfXiu2L55rFZC4UD/M=
github.com/duosecurity/duo_api_golang v0.0.0-20190308151101-6c680f768e74/go.mod h1:UqXY1lYT/ERa4OEAywUqdok1T4RCRdArkhic1Opuavo=
github.com/elazarl/go-bindata-assetfs v0.0.0-20160803192304-e1a2a7ec64b0 h1:ZoRgc53qJCfSLimXqJDrmBhnt5GChDsExMCK7t48o0Y=
Expand Down Expand Up @@ -390,6 +391,8 @@ github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8m
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/nacos-group/nacos-sdk-go v0.0.0-20191128082542-fe1b325b125c h1:WoCa3AvgQMVKNs+RIFlWPRgY9QVJwUxJDrGxHs0fcRo=
github.com/nacos-group/nacos-sdk-go v0.0.0-20191128082542-fe1b325b125c/go.mod h1:CEkSvEpoveoYjA81m4HNeYQ0sge0LFGKSEqO3JKHllo=
github.com/nacos-group/nacos-sdk-go v0.3.1 h1:MI7bNDAN5m9UFcRRUTSPfJi4dCQo+TYG85qVB1rCHeg=
github.com/nacos-group/nacos-sdk-go v0.3.1/go.mod h1:ESKb6yF0gxSc8GuS+0jaMBe+n8rJ5/k4ya6LyFG2xi8=
github.com/nicolai86/scaleway-sdk v1.10.2-0.20180628010248-798f60e20bb2 h1:BQ1HW7hr4IVovMwWg0E0PYcyW8CzqDcVmaew9cujU4s=
github.com/nicolai86/scaleway-sdk v1.10.2-0.20180628010248-798f60e20bb2/go.mod h1:TLb2Sg7HQcgGdloNxkrmtgDNR9uVYF3lfdFIN4Ro6Sk=
github.com/oklog/run v0.0.0-20180308005104-6934b124db28 h1:Hbr3fbVPXea52oPQeP7KLSxP52g6SFaNY1IqAmUyEW0=
Expand Down Expand Up @@ -423,6 +426,8 @@ github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand Down