2021-01-19 22:08:06 +03:00
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/unistack-org/micro/v3/client"
|
2021-01-29 15:01:10 +03:00
|
|
|
"github.com/unistack-org/micro/v3/register"
|
2021-01-19 22:08:06 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type clientKey struct{}
|
|
|
|
|
|
|
|
// Client sets the RPC client
|
2021-01-29 15:01:10 +03:00
|
|
|
func Client(c client.Client) register.Option {
|
|
|
|
return register.SetOption(clientKey{}, c)
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|