tygerproxy

package
v0.0.0-...-ed3f6ae Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalBuffersCapability = "LocalBuffers"
)

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, tygerClient *client.TygerClient, options *ProxyOptions, serviceMetadata *model.ServiceMetadata, logger zerolog.Logger) (CloseProxyFunc, error)

type ProxyOptions

type ProxyOptions struct {
	controlplane.LoginConfig
}

type ProxyServiceMetadata

type ProxyServiceMetadata struct {
	model.ServiceMetadata
	ServerUrl string `json:"serverUrl"`
	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