Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Target string
DailOptions []grpc.DialOption
Timeout time.Duration
TLSVerify bool
IsTracingEnabled bool
ServiceID string
Endpoint *target.Endpoint
}
Options defines the configuration for a GRPC proxy instance.
type Proxy ¶ added in v0.10.0
type Proxy struct {
// contains filtered or unexported fields
}
Proxy implements a reverse proxy for gRPC services.
func (*Proxy) Endpoint ¶ added in v0.11.0
Endpoint returns the endpoint info associated with this proxy.
func (*Proxy) ServeHTTP ¶ added in v0.10.0
func (p *Proxy) ServeHTTP(ctx context.Context, c *app.RequestContext)
ServeHTTP implements the http.Handler interface.
func (*Proxy) SetEndpoint ¶ added in v0.11.0
SetEndpoint updates the endpoint info associated with this proxy.
Click to show internal directories.
Click to hide internal directories.