micro-register-service/service.go

18 lines
417 B
Go

// Package service uses the registry service
package service
import (
"github.com/micro/go-micro/config/cmd"
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/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...)
}