add proxy interface and move router packages

This commit is contained in:
Asim Aslam
2019-06-06 17:55:32 +01:00
parent 64459c54a1
commit a58bc8e75c
8 changed files with 27 additions and 16 deletions

View File

@@ -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