backend

package
v2.10.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MCPClientInitTimeout = 1 * time.Minute

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Run(context.Context) (http.Handler, error)
	Wait() error
	Close() error
}

func NewProxyBackend

func NewProxyBackend(logger *zap.Logger, cmd []string) Backend

func NewTransparentBackend

func NewTransparentBackend(logger *zap.Logger, u *url.URL, trusted []string) (Backend, error)

type ProxyBackend

type ProxyBackend struct {
	// contains filtered or unexported fields
}

func (*ProxyBackend) Close

func (p *ProxyBackend) Close() error

func (*ProxyBackend) Run

func (p *ProxyBackend) Run(ctx context.Context) (http.Handler, error)

func (*ProxyBackend) Wait

func (p *ProxyBackend) Wait() error

type TransparentBackend

type TransparentBackend struct {
	// contains filtered or unexported fields
}

func (*TransparentBackend) Close

func (p *TransparentBackend) Close() error

func (*TransparentBackend) Run

func (*TransparentBackend) Wait

func (p *TransparentBackend) Wait() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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