You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
typePlanstruct {
DatacenterstringTokenstringTypestringHandlerTypestringExemptmap[string]interface{}
WatcherWatcherFunc// Handler is kept for backward compatibility but only supports watches based// on index param. To support hash based watches, set HybridHandler instead.HandlerHandlerFuncHybridHandlerHybridHandlerFuncLogger hclog.Logger// Deprecated: use LoggerLogOutput io.Writeraddressstringclient*consulapi.ClientlastParamValBlockingParamVallastResultinterface{}
QueryOtions*consuapi.QueryOptions// used to specify default QueryOptionsstopboolstopChchanstruct{}
stopLock sync.MutexcancelFunc context.CancelFunc
}
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
consul/api/watch/watch.go
Line 24 in 2f33511
consul/api/watch/funcs.go
Line 340 in 2f33511
If we think this is meaningful, please assign it to me
The text was updated successfully, but these errors were encountered: