2019-11-10 22:54:23 +03:00
|
|
|
// Package service uses the registry service
|
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
2020-07-14 23:27:09 +03:00
|
|
|
"github.com/micro/go-micro/v2/cmd"
|
2020-01-31 01:26:39 +03:00
|
|
|
"github.com/micro/go-micro/v2/registry"
|
|
|
|
"github.com/micro/go-micro/v2/registry/service"
|
2019-11-10 22:54:23 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cmd.DefaultRegistries["service"] = NewRegistry
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewRegistry returns a new registry service client
|
|
|
|
func NewRegistry(opts ...registry.Option) registry.Registry {
|
|
|
|
return service.NewRegistry(opts...)
|
|
|
|
}
|