singbox

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: GPL-3.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tag = "proxy"
)

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, 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(ctx context.Context, 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) Apply added in v1.2.0

func (e *Engine) Apply(ctx context.Context, spec engine.SessionSpec) error

func (*Engine) Running added in v1.2.0

func (e *Engine) Running() bool

func (*Engine) Stop added in v1.2.0

func (e *Engine) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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