mirror of https://github.com/hashicorp/consul
8233303876
Adjust type + field names for ComputedExportedServices The existing type and field names in `ComputedExportedServices` are confusing to work with. For example, the mechanics of looping through services and their consumers wind up being: ```go // The field name here doesn't reflect what is actually at each index of the list for _, service := range exportedServices.Consumers { for _, consumer := range service.Consumers { // The prefix matching the type here causes stutter when reading and // isn't consistent with naming conventions for tenancy in pbresource tenancy := consumer.ConsumerTenancy } } ``` |
||
---|---|---|
.. | ||
computed_exported_services.pb.binary.go | ||
computed_exported_services.pb.go | ||
computed_exported_services.proto | ||
computed_exported_services_deepcopy.gen.go | ||
computed_exported_services_json.gen.go | ||
exported_services.pb.binary.go | ||
exported_services.pb.go | ||
exported_services.proto | ||
exported_services_consumer.pb.binary.go | ||
exported_services_consumer.pb.go | ||
exported_services_consumer.proto | ||
exported_services_consumer_deepcopy.gen.go | ||
exported_services_consumer_json.gen.go | ||
exported_services_deepcopy.gen.go | ||
exported_services_json.gen.go | ||
namespace_exported_services.pb.binary.go | ||
namespace_exported_services.pb.go | ||
namespace_exported_services.proto | ||
namespace_exported_services_deepcopy.gen.go | ||
namespace_exported_services_json.gen.go | ||
partition_exported_services.pb.binary.go | ||
partition_exported_services.pb.go | ||
partition_exported_services.proto | ||
partition_exported_services_deepcopy.gen.go | ||
partition_exported_services_json.gen.go | ||
resources.rtypes.go | ||
sameness_group.pb.binary.go | ||
sameness_group.pb.go | ||
sameness_group.proto | ||
sameness_group_deepcopy.gen.go | ||
sameness_group_json.gen.go |