Skip to content

Commit

Permalink
Merge pull request #701 from zhangshen023/develop
Browse files Browse the repository at this point in the history
Ftr: consul service discovery
  • Loading branch information
AlexStocks committed Sep 13, 2020
2 parents 57601bc + fc15617 commit 69b77b6
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 69b77b6

Please sign in to comment.