Open shenqidebaozi opened 10 months ago
非常有用 大佬请做个demo 在kratos的example中
@shenqidebaozi , thanks for the proposal. Do you mind elaborating on how the QueryOptions
can solve the peering
parameter in your example?
@huikang Of course, I will create a PR to implement this feature
@huikang I have submitted a PR,through this feature, users can specify QueryOptions
themselves without adding various watch parameters
Feature Description
When I use the Watch package in the Consul API, I want to listen for instance update events of the peer cluster through Watch, but it does not support specifying the peer parameter, so I cannot listen for instance information of the peer cluster.
Use Case(s)
I would like to add a configuration for
QueryOptions
in the plan to specify the defaultQueryOptions
https://github.com/hashicorp/consul/blob/2f335113f885b0b0304ac1ae57ffcacfa5818b32/api/watch/watch.go#L24https://github.com/hashicorp/consul/blob/2f335113f885b0b0304ac1ae57ffcacfa5818b32/api/watch/funcs.go#L340
If we think this is meaningful, please assign it to me