From a370675252c86101b9d1d9fcbcb8cb67c5f24623 Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Wed, 24 Jun 2020 11:46:51 +0100 Subject: [PATCH] router: add to service options; add dns and static implementations (#1733) * config/cmd: add router to service options * router/service: use micro client --- registry.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 registry.go diff --git a/registry.go b/registry.go new file mode 100644 index 0000000..01172b4 --- /dev/null +++ b/registry.go @@ -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...) +}