mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
19 lines
409 B
Go
19 lines
409 B
Go
// Package proxy is a transparent proxy built on the go-micro/server
|
|
package proxy
|
|
|
|
import (
|
|
"context"
|
|
|
|
"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 {
|
|
options.Options
|
|
// ServeRequest will serve a request
|
|
ServeRequest(context.Context, Request, Response) error
|
|
// run the proxy
|
|
Run() error
|
|
}
|