Граф коммитов

25 Коммитов

Автор SHA1 Сообщение Дата
Karsten Weiss 7de9139327 Fix typos (#1994) 2018-04-16 10:03:02 -07:00
Menghan Li 76b07ed73d
Mark old balancer and naming APIs as deprecated (#1951) 2018-04-05 13:12:31 -07:00
Alexander Zolotov ec61302c8e naming: Fix build constraints for go1.6 and go1.7 (#1718)
"go1.6, !go1.8" constraints are interpreted as (version >= 1.6 AND ) OR version < 1.8, where (version >= 1.6 AND ) is always false,
so it matches all go versions before 1.8, not only 1.6 and 1.7.

Removed a space, so the constraints are now matches only go1.6 and go1.7 versions
2017-12-07 12:43:58 -08:00
dfawley 5c3d956e18 Re-add support for Go1.6 (#1603) 2017-10-20 12:05:20 -07:00
dfawley c8405557a4 Remove Go1.6 support (#1492) 2017-10-04 13:57:10 -07:00
lyuxuan 9b6ac7ddb7 deduplicate dns record in lookup (#1454)
deduplicate dns record in lookup
2017-08-23 13:45:01 -07:00
Menghan Li 963eb485d8 Fix missing and wrong license (#1422) 2017-08-04 13:46:18 -07:00
lyuxuan a56843968d DNS resolver (#1300)
* initial dns resolver impl

* add srv lookup

* more srv

* change from string to Update

* added port handling

* a complete draft for dns resovler except the polling mechanism

* added sleep to infrequently poll the DNS server

* commented out test case since they are not portable

* remove duplicate declaration/definition in grpclb

* change namespace for grpclb structures

* goimports gofmt

* fix sorting issue

* implement sort.Interface

* different sort implementation for different go version

* add missing files

* fix missing comments

* handle err

* fix comments: unexport dnsResolver and dnsWatcher, add chan to exit Next(), add freq to control polling frequency

* enhance target string handling, add static IPWatcher, add mock test

* debug travis

* disable real address resolver test, since travis return 3 resolved IPs, 2 of them are duplicates

* shorten test time by reduce sleep time in TestIPWatcher, since it doesn't really do the DNS round trip

* resolve data race

* resolve data race using waitgroup

* reimplement setHostPort, compileUpdate, unexport ipWatcher

* delete sort related stuff, fix close bug for Next(), fix compileUpdate bug(change to map[Update]bool, plus fix minor review comments

* fix minor test case

* minor change to Next()

* use net.DefaultResolver with context as input

* add different build rules for lookupHost and lookupSRV

* minor fix

* go1.6 shall fail, but 1.7, 1.8 should pass

* go1.6 is expected to pass

* all go version should pass, added pre17 and 17 for replaceNetFunc to handle context problem

* rename test helper file name. should fix build problem

* goimports

* fix 1.7 context problem

* reformat dns_resolver_test structures

* change Next() behavior to have equal stalling interval between each lookup. Restructure dns_resolver_test.

* gofmt

* update go17_test.go, go18_test.go to reuse code. dns_resolver_test: check result and behavior correctness separately.

* update Next() logic
2017-07-24 17:17:45 -07:00
Jan Tattermusch ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
iamqizhao fca009f66f Fix some small comments 2016-05-26 15:11:33 -07:00
iamqizhao d4fcb1a651 fix some comments 2016-05-25 15:31:54 -07:00
iamqizhao 7cf6aab875 revise naming package a bit 2015-12-11 11:06:14 -08:00
iamqizhao 101776cb98 remove etcd name resolver impl tentatively and revise the naming API a bit 2015-12-04 14:23:24 -08:00
iamqizhao a80cf8dfe9 add a mutex to guard w.kv 2015-10-07 16:56:15 -07:00
iamqizhao 8d7cb9253d refactor naming package 2015-10-07 16:40:10 -07:00
iamqizhao bc3c9fde77 add license 2015-09-28 13:26:25 -07:00
iamqizhao 8b2dce3164 revise naming API 2015-09-28 13:16:26 -07:00
iamqizhao a102af5f83 refactor naming API and etcd-based impl 2015-09-14 17:32:52 -07:00
yangzhouhan 95389ca819 add a comment 2015-08-10 11:19:08 -07:00
yangzhouhan 22561bcdfc return error when create etcdNR fails 2015-08-10 11:17:24 -07:00
yangzhouhan 15755ea692 fix the comment 2015-08-10 11:03:11 -07:00
yangzhouhan 86b5db2f22 gofmt 2015-08-10 11:01:15 -07:00
yangzhouhan 2911d760f4 minor modification 2015-08-07 18:07:57 -07:00
yangzhouhan 6970805cc5 gofmt 2015-08-07 17:15:27 -07:00
yangzhouhan 2e3fbc4f8f change the name resolver interface 2015-08-07 17:12:15 -07:00