add proxy interface and move router packages
This commit is contained in:
@@ -4,13 +4,13 @@ package proxy
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/micro/go-micro/init"
|
||||
"github.com/micro/go-micro/options"
|
||||
"github.com/micro/go-micro/server"
|
||||
)
|
||||
|
||||
// Proxy can be used as a proxy server for go-micro services
|
||||
type Proxy interface {
|
||||
init.Options
|
||||
options.Options
|
||||
// ServeRequest will serve a request
|
||||
ServeRequest(context.Context, Request, Response) error
|
||||
// run the proxy
|
||||
|
||||
Reference in New Issue
Block a user