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