router: add to service options; add dns and static implementations (#1733)

* config/cmd: add router to service options

* router/service: use micro client
This commit is contained in:
ben-toogood 2020-06-24 11:46:51 +01:00 committed by Vasiliy Tolstov
commit a370675252

8
registry.go Normal file
View File

@ -0,0 +1,8 @@
package registry
import "github.com/micro/go-micro/v2/router"
// NewRouter returns an initialised registry router
func NewRouter(opts ...router.Option) router.Router {
return router.NewRouter(opts...)
}