browserforwarder

package
v5.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 18 Imported by: 1

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