common

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCountryGroup

func AddCountryGroup(proxies []model.Outbound, groupType string, sortKey string, sortType string, groupRules map[string][]string) []model.Outbound

func AppendOutbound

func AppendOutbound(outbound *model.Outbound, outboundTag string)

func Convert

func Convert(
	subscriptions []string,
	proxies []string,
	templatePath string,
	delete string,
	rename map[string]string,
	enableGroup bool,
	groupType string,
	sortKey string,
	sortType string,
	groupRules map[string][]string,
	userAgent string,
) (string, error)

func ConvertCProxyToSProxy

func ConvertCProxyToSProxy(proxy string) (model.Outbound, error)

func ConvertSubscriptionsToSProxy

func ConvertSubscriptionsToSProxy(urls []string, userAgent string) ([]model.Outbound, error)

func DeleteProxy

func DeleteProxy(proxies []model.Outbound, regex string) ([]model.Outbound, error)

func GetOutbounds

func GetOutbounds(outbound *model.Outbound) []string

func MergeTemplate

func MergeTemplate(outbounds []model.Outbound, template *model.Options, groupRules map[string][]string) (string, error)

func ReadTemplate

func ReadTemplate(template string, userAgent string) (string, error)

func RenameProxy

func RenameProxy(proxies []model.Outbound, regex string, replaceText string) ([]model.Outbound, error)

func SetOutbounds

func SetOutbounds(outbound *model.Outbound, outbounds []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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