consul/internal/resource
Matt Keeler 326c0ecfbe
In-Memory gRPC (#19942)
* Implement In-Process gRPC for use by controller caching/indexing

This replaces the pipe base listener implementation we were previously using. The new style CAN avoid cloning resources which our controller caching/indexing is taking advantage of to not duplicate resource objects in memory.

To maintain safety for controllers and for them to be able to modify data they get back from the cache and the resource service, the client they are presented in their runtime will be wrapped with an autogenerated client which clones request and response messages as they pass through the client.

Another sizable change in this PR is to consolidate how server specific gRPC services get registered and managed. Before this was in a bunch of different methods and it was difficult to track down how gRPC services were registered. Now its all in one place.

* Fix race in tests

* Ensure the resource service is registered to the multiplexed handler for forwarding from client agents

* Expose peer streaming on the internal handler
2024-01-12 11:54:07 -05:00
..
demo Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
http resource: block default namespace deletion + test refactorings (#19822) 2023-12-05 14:00:06 -05:00
mappers NET-7025 - ci: test-integrations failures in compatibility tests. panics occuring in selectionTracker.TrackIDForSelection (#20040) 2023-12-22 16:32:40 +00:00
protoc-gen-deepcopy
protoc-gen-json-shim
protoc-gen-resource-types Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
reaper Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
resourcetest In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
testdata
acls.go
authz.go
authz_ce.go
authz_ce_test.go
decode.go
decode_test.go resource: block default namespace deletion + test refactorings (#19822) 2023-12-05 14:00:06 -05:00
equality.go
equality_test.go
errors.go
errors_test.go
filter.go
filter_test.go
hooks.go
hooks_test.go
reference.go
refkey.go
refkey_test.go
registry.go
registry_test.go
resource.go [OSS] feat: add experiments flag for v2 dns and skeleton interfaces (#20115) 2024-01-10 11:19:20 -05:00
resource_test.go
sort.go
sort_test.go Skip tests with p95 greater than 30 seconds outside of main and release branches. (#19628) 2023-11-15 13:43:33 -07:00
stringer.go
tenancy.go
tenancy_test.go
tombstone.go