Commit Graph

51 Commits

Author SHA1 Message Date
Asim Aslam
082f57fcad We can just check nil vals 2019-01-16 15:42:42 +00:00
Asim Aslam
cc5629fb6b Don't return zero length services 2019-01-16 15:41:37 +00:00
Asim Aslam
f2ac73eae5 only log error if its plus 3 2019-01-14 16:09:51 +00:00
Asim Aslam
39c24baca9 rename mock things to memory 2019-01-14 15:27:25 +00:00
Asim Aslam
d519180806
Merge branch 'master' into dns 2019-01-07 13:52:37 +00:00
Asim Aslam
d6a5ff432c add net.LookupHost for dns 2019-01-07 09:34:07 +00:00
Asim Aslam
f9da55e8a9 Add dns selector 2019-01-07 07:41:26 +00:00
Asim Aslam
4692af4393 Add static selector 2019-01-06 21:12:02 +00:00
Asim Aslam
460fb3e70c update package comments 2018-12-29 16:18:05 +00:00
Asim Aslam
5cae330732 Update selector race, rename cache selector 2018-12-29 15:44:51 +00:00
Asim Aslam
67d10e5f39 simplify get code 2018-12-18 18:06:34 +00:00
Asim Aslam
770c16a66d move to using rwmutex for selector 2018-12-18 16:51:42 +00:00
Mikhail Grachev
25e6dcc9b6 Fix some linter issues 2018-11-13 11:57:42 +03:00
Asim Aslam
c9b40cb33b switch to stdlib context 2018-03-03 11:53:52 +00:00
Asim Aslam
02260dcaa3 Add watch options 2018-02-19 17:12:37 +00:00
Asim Aslam
e7104d609a return the not found error 2017-10-28 16:21:32 +01:00
Asim Aslam
d48735793d remove ticker 2017-10-26 21:12:48 +01:00
Asim Aslam
6fb652f78a lazily start watcher 2017-10-26 20:55:52 +01:00
Uffy
b92130eeee remove redundant rand.Seed 2017-10-09 14:22:15 +08:00
Asim Aslam
bab586b71e make use of micro/go-log 2017-05-11 20:43:42 +01:00
wangkechun
059b9d36d7 fix fmt str 2017-02-25 22:53:25 +08:00
Asim Aslam
71d717a06d strip doc.go files 2016-12-14 15:41:48 +00:00
Asim
b3cdbaae1a Use random starting index for roundrobin 2016-10-29 09:31:32 +01:00
Asim
30e0fef615 Strip blacklist 2016-06-19 14:41:33 +01:00
Asim
02a0eb29d2 Temporarily disable blacklisting 2016-06-17 15:41:29 +01:00
Asim
4d24f4e30c Blacklist for longer to ensure it works 2016-05-26 18:26:02 +01:00
Asim
1254a87286 Add package comments 2016-05-24 22:22:46 +01:00
Asim
0d21b08928 Run method is obsolete 2016-05-07 03:08:43 +01:00
Asim
75f2706fd0 Use ErrNoneAvailable and test blacklisting 2016-05-07 00:04:08 +01:00
Asim
8353b7b865 Add blacklist to cache 2016-05-06 23:15:40 +01:00
Asim
77e4d4d9c4 Next phase of selector 2016-05-06 23:12:37 +01:00
Asim
6070e235eb remove comment 2016-05-05 21:13:07 +01:00
Asim
670ed74a13 Use del method 2016-05-05 21:12:59 +01:00
Asim
0a4484b406 First commit in strategy rework 2016-05-03 22:06:19 +01:00
Asim
b13361d010 Add cache ttl 2016-05-03 19:26:50 +01:00
Asim
67e464b34d Eliminate a data race by copying the services 2016-04-29 19:29:24 +01:00
Asim
9d8e5d1e15 Add caching selector 2016-04-26 18:49:29 +01:00
Asim
3d3044404e Don't add to defaults in func init, just add them to cmd 2016-04-26 18:49:02 +01:00
Asim
d6fdfc252e Make it easier to add select filters 2016-04-23 21:37:26 +01:00
Asim
ed764ca0b2 Add endpoint filter 2016-04-23 21:24:07 +01:00
Asim
febe87dfb8 Switch around method names 2016-04-23 21:09:48 +01:00
Asim
7c3ce60ce6 Add label and version filters 2016-04-23 20:57:46 +01:00
Asim
4d4f842702 Change SelectFilter to Filter 2016-04-23 20:15:01 +01:00
Asim
ad0744a95f make the mock sliggghtly more useful 2016-02-26 00:09:06 +00:00
Asim
8bf72a3325 Replace map[string]string with Context for extra options. map[string]string is essentially useless. Context can store anything 2016-01-06 16:25:12 +00:00
Asim
897115ed31 Fix some issues with initialisation 2016-01-04 23:07:56 +00:00
Asim
210b810096 Fix the selectors 2016-01-01 01:29:40 +00:00
Asim
191e835aa9 Add extra options to be used by others that need them 2015-12-31 18:14:40 +00:00
Asim
be43d827c7 Add String method to all interfaces 2015-12-19 21:56:14 +00:00
Asim
8e2dbb8997 Initialise the command stuff 2015-12-09 19:38:50 +00:00