Documentation ¶
Overview ¶
Package grpc transparently forwards the grpc protocol using a go-micro client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proxy ¶
type Proxy struct { // The proxy options options.Options // Endpoint specified the fixed endpoint to call. Endpoint string // The client to use for outbound requests Client client.Client }
Proxy will transparently proxy requests to the backend. If no backend is specified it will call a service using the client. If the service matches the Name it will use the server.DefaultRouter.
func NewSingleHostProxy ¶
NewSingleHostProxy returns a router which sends requests to a single backend
Click to show internal directories.
Click to hide internal directories.