Documentation ¶
Overview ¶
Package svcproxy provides an HTTP proxy which allows the daemon to serve HTTP requests on behalf of services within the app and forward then to the appropriate process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SvcProxy ¶
type SvcProxy struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new service proxy and it starts listening on a random port
You must call Close() on the returned service proxy when you are done with it.
func (*SvcProxy) RegisterGateway ¶
func (*SvcProxy) RegisterService ¶
RegisterService registers a service with the proxy and returns the BaseURL to be used to access the service.
Click to show internal directories.
Click to hide internal directories.