consul/agent/submatview
Dan Upton d7f8a8e4ef
proxycfg: remove dependency on `cache.UpdateEvent` (#13144)
OSS portion of enterprise PR 1857.

This removes (most) references to the `cache.UpdateEvent` type in the
`proxycfg` package.

As we're going to be direct usage of the agent cache with interfaces that
can be satisfied by alternative server-local datasources, it doesn't make
sense to depend on this type everywhere anymore (particularly on the
`state.ch` channel).

We also plan to extract `proxycfg` out of Consul into a shared library in
the future, which would require removing this dependency.

Aside from a fairly rote find-and-replace, the main change is that the
`cache.Cache` and `health.Client` types now accept a callback function
parameter, rather than a `chan<- cache.UpdateEvents`. This allows us to
do the type conversion without running another goroutine.
2022-05-20 15:47:40 +01:00
..
handler.go
local_materializer.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
materializer.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
rpc_materializer.go peering: initial sync (#12842) 2022-04-21 17:34:40 -05:00
store.go proxycfg: remove dependency on `cache.UpdateEvent` (#13144) 2022-05-20 15:47:40 +01:00
store_integration_test.go proxycfg: remove dependency on `cache.UpdateEvent` (#13144) 2022-05-20 15:47:40 +01:00
store_test.go remove remaining shim runStep functions (#13015) 2022-05-10 16:24:45 -05:00
streaming_test.go remove gogo from pbservice 2022-03-23 12:18:01 -04:00