Skip to content

Commit

Permalink
Merge pull request apache#701 from zhangshen023/develop
Browse files Browse the repository at this point in the history
Ftr: consul service discovery
  • Loading branch information
zouyx committed Sep 22, 2020
1 parent 295f936 commit e0e19af
Show file tree
Hide file tree
Showing 3 changed files with 741 additions and 0 deletions.
12 changes: 12 additions & 0 deletions common/constant/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,18 @@ const (
ETCDV3_KEY = "etcdv3"
)

const (
CONSUL_KEY = "consul"
CHECK_PASS_INTERVAL = "consul-check-pass-interval"
// default time-to-live in millisecond
DEFAULT_CHECK_PASS_INTERVAL = 16000
QUERY_TAG = "consul_query_tag"
ACL_TOKEN = "acl-token"
// default deregister critical server after
DEFAULT_DEREGISTER_TIME = "20s"
DEREGISTER_AFTER = "consul-deregister-critical-service-after"
)

const (
TRACING_REMOTE_SPAN_CTX = "tracing.remote.span.ctx"
)
Expand Down
Loading

0 comments on commit e0e19af

Please sign in to comment.