open-consul/agent/cache-types
Daniel Nephin 1251c01b73 agent/cache: Make all cache options RegisterOptions
Previously the SupportsBlocking option was specified by a method on the
type, and all the other options were specified from RegisterOptions.

This change moves RegisterOptions to a method on the type, and moves
SupportsBlocking into the options struct.

Currently there are only 2 cache-types. So all cache-types can implement
this method by embedding a struct with those predefined values. In the
future if a cache type needs to be registered more than once with different
options it can remove the embedded type and implement the method in a way
that allows for paramaterization.
2020-04-16 18:56:34 -04:00
..
catalog_datacenters.go
catalog_datacenters_test.go
catalog_list_services.go
catalog_list_services_test.go
catalog_service_list.go
catalog_service_list_test.go
catalog_services.go
catalog_services_test.go
config_entry.go
config_entry_test.go
connect_ca_leaf.go
connect_ca_leaf_oss.go
connect_ca_leaf_test.go
connect_ca_root.go
connect_ca_root_test.go
discovery_chain.go
discovery_chain_test.go
federation_state_list_gateways.go
federation_state_list_gateways_test.go
gateway_services.go
gateway_services_test.go
health_services.go
health_services_test.go
intention_match.go
intention_match_test.go
mock_RPC.go
node_services.go
node_services_test.go
options.go
prepared_query.go
prepared_query_test.go
resolved_service_config.go
resolved_service_config_test.go
rpc.go
service_checks.go
service_checks_test.go
service_dump.go
service_dump_test.go
testing.go