Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
397e71f815 |
@@ -130,12 +130,9 @@ func NewLookupOptions(opts ...LookupOption) LookupOptions {
|
|||||||
|
|
||||||
// ListOptions holds the list options for list method
|
// ListOptions holds the list options for list method
|
||||||
type ListOptions struct {
|
type ListOptions struct {
|
||||||
// Context used to store additional options
|
|
||||||
Context context.Context
|
Context context.Context
|
||||||
// Namespace to scope the request to
|
// Namespace to scope the request to
|
||||||
Namespace string
|
Namespace string
|
||||||
// Name filter services by name
|
|
||||||
Name string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewListOptions returns list options filled by opts
|
// NewListOptions returns list options filled by opts
|
||||||
@@ -297,13 +294,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
|
// Name sets the name
|
||||||
func Name(n string) Option {
|
func Name(n string) Option {
|
||||||
return func(o *Options) {
|
return func(o *Options) {
|
||||||
|
Reference in New Issue
Block a user