Open liuyangc3 opened 7 years ago
{"enable": true, "servers": [{"host": "127.0.0.1","port": 8001,"weight": 1,"max_fails": 6,"fail_timeout": 30}]}
/v1/kv/upstreams/key
returned from consul is base64 encoded, while /v1/kv/upstreams/key?raw
is not.For more information, you can refer to the api docs of consul.
I notice that in
init
phase, slardar getskeys
from consul by using ip:port/v1/kv/config/slardar/http_upstreams?keys andserver
from ip:port/v1/kv/upstreams/skey?raws by default.my questions is: 1 what data format exactly sore in v1/kv/config/slardar/http_upstreams
2 what is the value of
key
in v1/kv/upstreams/key
, ant what is the raw value of v1/kv/upstreams/key
?raw,myabe it is in my guess:I cant find any explanation in this project doc,thx