browserforwarder

package
v5.55.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 19 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_app_browserforwarder_config_proto protoreflect.FileDescriptor

Functions

func BridgeResource

func BridgeResource(rw http.ResponseWriter, r *http.Request, path string)

Types

type Config

type Config struct {
	ListenAddr string `protobuf:"bytes,1,opt,name=listen_addr,json=listenAddr,proto3" json:"listen_addr,omitempty"`
	ListenPort int32  `protobuf:"varint,2,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"`
	// contains filtered or unexported fields
}

Config is the settings for BrowserForwarder.

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetListenAddr

func (x *Config) GetListenAddr() string

func (*Config) GetListenPort

func (x *Config) GetListenPort() int32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Forwarder

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

func NewForwarder

func NewForwarder(ctx context.Context, cfg *Config) *Forwarder

func (*Forwarder) Close

func (f *Forwarder) Close() error

func (*Forwarder) DialWebsocket

func (f *Forwarder) DialWebsocket(url string, header http.Header) (io.ReadWriteCloser, error)

func (*Forwarder) ServeHTTP

func (f *Forwarder) ServeHTTP(writer http.ResponseWriter, request *http.Request)

func (*Forwarder) Start

func (f *Forwarder) Start() error

func (*Forwarder) Type

func (f *Forwarder) Type() interface{}

Jump to

Keyboard shortcuts

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