many improvements with options and noop stuff
* add many options helpers * fix noop client to allow publish messages to topic in broker * fix noop server to allow registering in registry * fix noop server to allow subscribe to topic in broker * fix new service initialization Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -65,7 +65,7 @@ func QueryLink(link string) QueryOption {
|
||||
// NewQuery creates new query and returns it
|
||||
func NewQuery(opts ...QueryOption) QueryOptions {
|
||||
// default options
|
||||
qopts := QueryOptions{
|
||||
options := QueryOptions{
|
||||
Service: "*",
|
||||
Address: "*",
|
||||
Gateway: "*",
|
||||
@@ -75,8 +75,8 @@ func NewQuery(opts ...QueryOption) QueryOptions {
|
||||
}
|
||||
|
||||
for _, o := range opts {
|
||||
o(&qopts)
|
||||
o(&options)
|
||||
}
|
||||
|
||||
return qopts
|
||||
return options
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user