micro-register-service/options.go
Vasiliy Tolstov 4c99389c04 use own fork
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 22:08:06 +03:00

14 lines
264 B
Go

package service
import (
"github.com/unistack-org/micro/v3/client"
"github.com/unistack-org/micro/v3/registry"
)
type clientKey struct{}
// Client sets the RPC client
func Client(c client.Client) registry.Option {
return registry.SetOption(clientKey{}, c)
}