Documentation ¶
Overview ¶
Package xproxy contains the implementation of the proxy service.
Design document at https://docs.google.com/document/d/1ONrnxGhOrA8pd0pK0aN5Ued2Q1Eju4zn7vlLt9nzIRA/edit?usp=sharing
This file was auto-generated by the vanadium vdl tool. Package: xproxy
Index ¶
- Variables
- func ErrorfFailedToResolveToEndpoint(ctx *context.T, format string, name string) error
- func ErrorfNotListening(ctx *context.T, format string) error
- func ErrorfProxyAlreadyClosed(ctx *context.T, format string) error
- func ErrorfProxyResponse(ctx *context.T, format string, msg string) error
- func ErrorfUnexpectedMessage(ctx *context.T, format string, msgType string) error
- func MessageFailedToResolveToEndpoint(ctx *context.T, message string, name string) error
- func MessageNotListening(ctx *context.T, message string) error
- func MessageProxyAlreadyClosed(ctx *context.T, message string) error
- func MessageProxyResponse(ctx *context.T, message string, msg string) error
- func MessageUnexpectedMessage(ctx *context.T, message string, msgType string) error
- func ParamsErrFailedToResolveToEndpoint(argumentError error) (verrorComponent string, verrorOperation string, name string, returnErr error)
- func ParamsErrNotListening(argumentError error) (verrorComponent string, verrorOperation string, returnErr error)
- func ParamsErrProxyAlreadyClosed(argumentError error) (verrorComponent string, verrorOperation string, returnErr error)
- func ParamsErrProxyResponse(argumentError error) (verrorComponent string, verrorOperation string, msg string, returnErr error)
- func ParamsErrUnexpectedMessage(argumentError error) (verrorComponent string, verrorOperation string, msgType string, ...)
- type Proxy
Constants ¶
This section is empty.
Variables ¶
var ( ErrNotListening = verror.NewIDAction("v.io/x/ref/services/xproxy/xproxy.NotListening", verror.NoRetry) ErrUnexpectedMessage = verror.NewIDAction("v.io/x/ref/services/xproxy/xproxy.UnexpectedMessage", verror.NoRetry) ErrFailedToResolveToEndpoint = verror.NewIDAction("v.io/x/ref/services/xproxy/xproxy.FailedToResolveToEndpoint", verror.NoRetry) ErrProxyAlreadyClosed = verror.NewIDAction("v.io/x/ref/services/xproxy/xproxy.ProxyAlreadyClosed", verror.NoRetry) ErrProxyResponse = verror.NewIDAction("v.io/x/ref/services/xproxy/xproxy.ProxyResponse", verror.NoRetry) )
Functions ¶
func ErrorfFailedToResolveToEndpoint ¶ added in v0.1.10
ErrorfFailedToResolveToEndpoint calls ErrFailedToResolveToEndpoint.Errorf with the supplied arguments.
func ErrorfNotListening ¶ added in v0.1.10
ErrorfNotListening calls ErrNotListening.Errorf with the supplied arguments.
func ErrorfProxyAlreadyClosed ¶ added in v0.1.10
ErrorfProxyAlreadyClosed calls ErrProxyAlreadyClosed.Errorf with the supplied arguments.
func ErrorfProxyResponse ¶ added in v0.1.10
ErrorfProxyResponse calls ErrProxyResponse.Errorf with the supplied arguments.
func ErrorfUnexpectedMessage ¶ added in v0.1.10
ErrorfUnexpectedMessage calls ErrUnexpectedMessage.Errorf with the supplied arguments.
func MessageFailedToResolveToEndpoint ¶ added in v0.1.10
MessageFailedToResolveToEndpoint calls ErrFailedToResolveToEndpoint.Message with the supplied arguments.
func MessageNotListening ¶ added in v0.1.10
MessageNotListening calls ErrNotListening.Message with the supplied arguments.
func MessageProxyAlreadyClosed ¶ added in v0.1.10
MessageProxyAlreadyClosed calls ErrProxyAlreadyClosed.Message with the supplied arguments.
func MessageProxyResponse ¶ added in v0.1.10
MessageProxyResponse calls ErrProxyResponse.Message with the supplied arguments.
func MessageUnexpectedMessage ¶ added in v0.1.10
MessageUnexpectedMessage calls ErrUnexpectedMessage.Message with the supplied arguments.
func ParamsErrFailedToResolveToEndpoint ¶ added in v0.1.10
func ParamsErrFailedToResolveToEndpoint(argumentError error) (verrorComponent string, verrorOperation string, name string, returnErr error)
ParamsErrFailedToResolveToEndpoint extracts the expected parameters from the error's ParameterList.
func ParamsErrNotListening ¶ added in v0.1.10
func ParamsErrNotListening(argumentError error) (verrorComponent string, verrorOperation string, returnErr error)
ParamsErrNotListening extracts the expected parameters from the error's ParameterList.
func ParamsErrProxyAlreadyClosed ¶ added in v0.1.10
func ParamsErrProxyAlreadyClosed(argumentError error) (verrorComponent string, verrorOperation string, returnErr error)
ParamsErrProxyAlreadyClosed extracts the expected parameters from the error's ParameterList.
Types ¶
type Proxy ¶ added in v0.1.10
type Proxy struct {
// contains filtered or unexported fields
}
Proxy represents an instance of a proxy service.
func (*Proxy) Closed ¶ added in v0.1.10
func (p *Proxy) Closed() <-chan struct{}
Closed returns a channel that will be closed when the proxy is shutdown.
func (*Proxy) ListeningEndpoints ¶ added in v0.1.10
ListeningEndpoints returns the endpoints the proxy is listening on.