xproxy

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2021 License: BSD-3-Clause Imports: 16 Imported by: 4

Documentation

Overview

Package xproxy contains the implementation of the proxy service.

Design document at https://docs.google.com/document/d/1ONrnxGhOrA8pd0pK0aN5Ued2Q1Eju4zn7vlLt9nzIRA/edit?usp=sharing

Index

Constants

This section is empty.

Variables

View Source
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

func ErrorfFailedToResolveToEndpoint(ctx *context.T, format string, name string) error

ErrorfFailedToResolveToEndpoint calls ErrFailedToResolveToEndpoint.Errorf with the supplied arguments.

func ErrorfNotListening added in v0.1.10

func ErrorfNotListening(ctx *context.T, format string) error

ErrorfNotListening calls ErrNotListening.Errorf with the supplied arguments.

func ErrorfProxyAlreadyClosed added in v0.1.10

func ErrorfProxyAlreadyClosed(ctx *context.T, format string) error

ErrorfProxyAlreadyClosed calls ErrProxyAlreadyClosed.Errorf with the supplied arguments.

func ErrorfProxyResponse added in v0.1.10

func ErrorfProxyResponse(ctx *context.T, format string, msg string) error

ErrorfProxyResponse calls ErrProxyResponse.Errorf with the supplied arguments.

func ErrorfUnexpectedMessage added in v0.1.10

func ErrorfUnexpectedMessage(ctx *context.T, format string, msgType string) error

ErrorfUnexpectedMessage calls ErrUnexpectedMessage.Errorf with the supplied arguments.

func MessageFailedToResolveToEndpoint added in v0.1.10

func MessageFailedToResolveToEndpoint(ctx *context.T, message string, name string) error

MessageFailedToResolveToEndpoint calls ErrFailedToResolveToEndpoint.Message with the supplied arguments.

func MessageNotListening added in v0.1.10

func MessageNotListening(ctx *context.T, message string) error

MessageNotListening calls ErrNotListening.Message with the supplied arguments.

func MessageProxyAlreadyClosed added in v0.1.10

func MessageProxyAlreadyClosed(ctx *context.T, message string) error

MessageProxyAlreadyClosed calls ErrProxyAlreadyClosed.Message with the supplied arguments.

func MessageProxyResponse added in v0.1.10

func MessageProxyResponse(ctx *context.T, message string, msg string) error

MessageProxyResponse calls ErrProxyResponse.Message with the supplied arguments.

func MessageUnexpectedMessage added in v0.1.10

func MessageUnexpectedMessage(ctx *context.T, message string, msgType string) error

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.

func ParamsErrProxyResponse added in v0.1.10

func ParamsErrProxyResponse(argumentError error) (verrorComponent string, verrorOperation string, msg string, returnErr error)

ParamsErrProxyResponse extracts the expected parameters from the error's ParameterList.

func ParamsErrUnexpectedMessage added in v0.1.10

func ParamsErrUnexpectedMessage(argumentError error) (verrorComponent string, verrorOperation string, msgType string, returnErr error)

ParamsErrUnexpectedMessage 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 New

func New(ctx *context.T, name string, auth security.Authorizer) (*Proxy, error)

New returns a new instance of Proxy.

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

func (p *Proxy) ListeningEndpoints() []naming.Endpoint

ListeningEndpoints returns the endpoints the proxy is listening on.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL