micro-register-service/options.go
Vasiliy Tolstov 20595819a2 update for latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 15:01:10 +03:00

14 lines
264 B
Go

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