many fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-02-13 15:34:48 +03:00
parent c4170d01d9
commit 3573133bdb
35 changed files with 246 additions and 1671 deletions

View File

@@ -7,6 +7,10 @@ import (
"github.com/unistack-org/micro/v3/api"
)
var (
DefaultRouter Router
)
// Router is used to determine an endpoint for a request
type Router interface {
// Returns options
@@ -23,6 +27,6 @@ type Router interface {
Deregister(ep *api.Endpoint) error
// Route returns an api.Service route
Route(r *http.Request) (*api.Service, error)
// String represenation of router
// String representation of router
String() string
}