core

package
v0.0.0-...-98069fe Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTransport

func CreateTransport(to *transportOptions) *http.Transport

func CreateTransportWithNic

func CreateTransportWithNic(nic net.Interface) *http.Transport

func NewNetDialerWithNicBinding

func NewNetDialerWithNicBinding(nic net.Interface) *net.Dialer

func Readflag

func Readflag() config

Types

type DynamicBindNic

type DynamicBindNic struct {
	Enabled   bool
	Prefix    string
	StartPort int
}

type TunnelConfig

type TunnelConfig struct {
	CustomTransport *http.Transport
}

func SetServer

func SetServer(customTransport *http.Transport) *TunnelConfig

func (*TunnelConfig) ServeHTTP

func (t *TunnelConfig) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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