format

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Podkop

func Podkop(proxies []proxy.Proxy, section string) ([]string, error)

Podkop converts proxies to uci shell commands for podkop OpenWrt package. Returns a slice of command lines.

func Singbox added in v1.1.0

func Singbox(proxies []proxy.Proxy, cfg SingboxConfig) ([]string, error)

Singbox converts proxies to sing-box outbound JSON object strings. Returns a slice where each element is a single JSON object (no trailing comma, no array wrapping).

Types

type SingboxConfig added in v1.1.0

type SingboxConfig struct {
	OutboundPrefix string
	OutboundSuffix string
	DNSResolver    string
	KeepRemark     bool
}

SingboxConfig holds options for sing-box outbound generation.

Jump to

Keyboard shortcuts

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