micro-register-service/options.go

14 lines
264 B
Go
Raw Normal View History

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)
}