use own fork

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-19 19:41:39 +03:00
parent 929a544989
commit f95d343393
13 changed files with 1380 additions and 290 deletions

20
options.go Normal file
View File

@@ -0,0 +1,20 @@
package service
import (
"github.com/unistack-org/micro/v3/broker"
"github.com/unistack-org/micro/v3/client"
)
type clientKey struct{}
// Client to call broker service
func Client(c client.Client) broker.Option {
return broker.SetOption(clientKey{}, c)
}
type serviceKey struct{}
// Service to call broker service
func Service(name string) broker.Option {
return broker.SetOption(serviceKey{}, name)
}