singbox

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: GPL-3.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tag = "proxy"
)

Variables

This section is empty.

Functions

func Build

func Build(n domain.Node, s domain.Settings, logPath string, tun bool) (*option.Options, error)

func Context

func Context(ctx context.Context) context.Context

func New

func New(s domain.Settings, logPath string) engine.Engine

func Probe

func Probe(ctx context.Context, nodes []domain.Node, s domain.Settings, logPath string) (map[string]engine.Result, error)

func ProbeConfig

func ProbeConfig(ctx context.Context, nodes []domain.Node, s domain.Settings, logPath string) (*option.Options, error)

func ProbeTag

func ProbeTag(i int) string

func TunInbound

func TunInbound(s domain.Settings, resolverIPs []netip.Prefix) option.Inbound

Types

type Engine

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

func (*Engine) Close

func (e *Engine) Close() error

func (*Engine) Start

func (e *Engine) Start(n domain.Node, tun bool) error

func (*Engine) Swap

func (e *Engine) Swap(n domain.Node) error

func (*Engine) TunAdd

func (e *Engine) TunAdd() error

func (*Engine) TunRemove

func (e *Engine) TunRemove() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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