micro-register-service/service.go
Vasiliy Tolstov 8bd0a985f7 fix import path for v2 release (#457)
* fix import path for v2 release

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 22:02:55 +03:00

18 lines
426 B
Go

// Package service uses the registry service
package service
import (
"github.com/micro/go-micro/v2/config/cmd"
"github.com/micro/go-micro/v2/registry"
"github.com/micro/go-micro/v2/registry/service"
)
func init() {
cmd.DefaultRegistries["service"] = NewRegistry
}
// NewRegistry returns a new registry service client
func NewRegistry(opts ...registry.Option) registry.Registry {
return service.NewRegistry(opts...)
}