update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-29 14:32:32 +03:00
parent 4e2f984088
commit 7e46d86253
5 changed files with 48 additions and 375 deletions

View File

@@ -1,13 +1,13 @@
package http
import (
"github.com/unistack-org/micro/v3/registry"
"github.com/unistack-org/micro/v3/register"
"github.com/unistack-org/micro/v3/server"
)
type httpHandler struct {
opts server.HandlerOptions
eps []*registry.Endpoint
eps []*register.Endpoint
hd interface{}
}
@@ -19,7 +19,7 @@ func (h *httpHandler) Handler() interface{} {
return h.hd
}
func (h *httpHandler) Endpoints() []*registry.Endpoint {
func (h *httpHandler) Endpoints() []*register.Endpoint {
return h.eps
}