From 074f1d1bb45286bf444227563aad48efd17a696a Mon Sep 17 00:00:00 2001 From: Sam Salisbury Date: Mon, 6 Apr 2020 15:17:22 +0100 Subject: [PATCH] add type aliases; honour go compatibility promise --- balancer/v1api_aliases.go | 7 +++++++ resolver/v1api_aliases.go | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 balancer/v1api_aliases.go create mode 100644 resolver/v1api_aliases.go diff --git a/balancer/v1api_aliases.go b/balancer/v1api_aliases.go new file mode 100644 index 000000000000..d30bd6090049 --- /dev/null +++ b/balancer/v1api_aliases.go @@ -0,0 +1,7 @@ +package balancer + +// These type aliases should be removed when this project reaches +// major version 2. They exist so we can stabilize the API on the +// correct names, whilst preserving the Go compatibility promise. + +type PickOptions = PickInfo diff --git a/resolver/v1api_aliases.go b/resolver/v1api_aliases.go new file mode 100644 index 000000000000..30d7665452d7 --- /dev/null +++ b/resolver/v1api_aliases.go @@ -0,0 +1,8 @@ +package resolver + +// These type aliases should be removed when this project reaches +// major version 2. They exist so we can stabilize the API on the +// correct names, whilst preserving the Go compatibility promise. + +type BuildOption = BuildOptions +type ResolveNowOption = ResolveNowOptions