micro-register-service/service.go

18 lines
419 B
Go
Raw Normal View History

// Package service uses the registry service
package service
import (
2020-07-14 23:27:09 +03:00
"github.com/micro/go-micro/v2/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...)
}