proxy

package
v0.0.0-...-ac9560e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProxyAlreadyRunning            = errors.New("the proxy is already running")
	ErrProxyAlreadyRunningWrongTarget = errors.New("the proxy is already running on the requested port, but targets a different server")
	ErrProxyNotRunning                = errors.New("the proxy is not running")
)

Functions

This section is empty.

Types

type CloseProxyFunc

type CloseProxyFunc func() error

func RunProxy

func RunProxy(ctx context.Context, serviceInfo settings.ServiceInfo, options *ProxyOptions, logger zerolog.Logger) (CloseProxyFunc, error)

type ProxyOptions

type ProxyOptions struct {
	controlplane.LoginConfig
}

type ProxyServiceMetadata

type ProxyServiceMetadata struct {
	model.ServiceMetadata
	ServerUri string `json:"serverUri"`
	LogPath   string `json:"logPath,omitempty"`
}

func CheckProxyAlreadyRunning

func CheckProxyAlreadyRunning(options *ProxyOptions) (*ProxyServiceMetadata, error)

func GetExistingProxyMetadata

func GetExistingProxyMetadata(options *ProxyOptions) *ProxyServiceMetadata

Jump to

Keyboard shortcuts

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