buildclient

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialerFactory

func DialerFactory(config *configs.TmConfig, fc *Builder, client *client.Client) error

func Handler

func Handler(config *configs.TmConfig, fc *Builder, cc *client.Client) error

func Netmon

func Netmon(config *configs.TmConfig, builder *Builder, client *client.Client) error

func NewDNS

func NewDNS(config *configs.TmConfig, fc *Builder, client *client.Client) error

func NewInterfaceMonotor

func NewInterfaceMonotor(name string, f *Builder) (i.DefaultInterfaceInfo, error)

func NewSysProxy

func NewSysProxy(cfg *configs.SysProxyConfig, f *Builder) error

func NewTunGvisorInbound

func NewTunGvisorInbound(config *configs.TunConfig, f *Builder,
	rejector *reject.TCPReject, udpReject *reject.UdpReject, client *client.Client) error

func NewTunSystemInbound

func NewTunSystemInbound(
	device tun.TunDeviceWithInfo, tag string, handler i.Handler, dnsConns *dns.Dns,
	rejector *reject.TCPReject, udpRejector *reject.UdpReject) (*system.TunSystemInbound, error)

func NewX

func NewX(config *configs.TmConfig, opts ...Option) (*client.Client, error)

func Tun

func Tun(config *configs.TmConfig, fc *Builder, client *client.Client) error

func TunConfigToTunOption

func TunConfigToTunOption(config *configs.TunDeviceConfig) (*tun.TunOption, error)

func Wfp

func Wfp(config *configs.WfpConfig, f *Builder) error

Types

type Builder

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

func New

func New() *Builder

type Option

type Option func(*Builder) error

func WithComponents

func WithComponents(components ...interface{}) Option

func WithFeatures

func WithFeatures(features ...interface{}) Option

Jump to

Keyboard shortcuts

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