2019-06-06 09:50:25 +01:00
|
|
|
// Package proxy is a transparent proxy built on the go-micro/server
|
|
|
|
package proxy
|
|
|
|
|
2019-06-06 17:49:41 +01:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2019-06-06 17:55:32 +01:00
|
|
|
"github.com/micro/go-micro/options"
|
2019-06-06 17:49:41 +01:00
|
|
|
"github.com/micro/go-micro/server"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Proxy can be used as a proxy server for go-micro services
|
|
|
|
type Proxy interface {
|
2019-06-06 17:55:32 +01:00
|
|
|
options.Options
|
2019-06-06 17:49:41 +01:00
|
|
|
// ServeRequest will serve a request
|
2019-06-06 17:58:21 +01:00
|
|
|
ServeRequest(context.Context, server.Request, server.Response) error
|
2019-06-06 17:49:41 +01:00
|
|
|
}
|