From 06da500ef4ebfc6fc13139b078dd32b046ceff51 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 27 Dec 2024 23:56:27 +0300 Subject: [PATCH] register: cleanup Signed-off-by: Vasiliy Tolstov --- register/options.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/register/options.go b/register/options.go index d46c4ced..c2f192ef 100644 --- a/register/options.go +++ b/register/options.go @@ -138,8 +138,6 @@ type ListOptions struct { Context context.Context // Namespace to scope the request to Namespace string - // Name filter services by name - Name string } // NewListOptions returns list options filled by opts @@ -301,13 +299,6 @@ func ListNamespace(d string) ListOption { } } -// ListName sets the name for list method to filter needed services -func ListName(n string) ListOption { - return func(o *ListOptions) { - o.Name = n - } -} - // Name sets the name func Name(n string) Option { return func(o *Options) { @@ -315,8 +306,6 @@ func Name(n string) Option { } } -type codecKey struct{} - func Codec(c codec.Codec) Option { return func(o *Options) { o.Codec = c