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/registry"
)
type clientKey struct{}
// Client sets the RPC client
func Client(c client.Client) registry.Option {
return registry.SetOption(clientKey{}, c)
}