Documentation ¶
Overview ¶
Package proxy is a transparent proxy built on the micro/server
Package proxy is a transparent proxy built on the micro/server
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultEndpoint = "localhost:9090"
)
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option func signature
type Options ¶
type Options struct { // Specific endpoint to always call Endpoint string // The default client to use Client client.Client // The default router to use Router router.Router // Extra links for different clients Links map[string]client.Client // Logger Logger logger.Logger // Meter Meter meter.Meter // Tracer Tracer tracer.Tracer }
Options for proxy
func NewOptions ¶ added in v3.1.6
type Proxy ¶
type Proxy interface { // ProcessMessage handles inbound messages ProcessMessage(context.Context, server.Message) error // ServeRequest handles inbound requests ServeRequest(context.Context, server.Request, server.Response) error // Name of the proxy protocol String() string }
Proxy can be used as a proxy server for micro services
Click to show internal directories.
Click to hide internal directories.