deprecated

package
v1.14.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: GPL-2.0 Imports: 12 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptionImplicitDefaultHTTPClient = Note{
	Name:              "implicit-default-http-client",
	Description:       "implicit default HTTP client using default outbound for remote rule-sets",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "IMPLICIT_DEFAULT_HTTP_CLIENT",
}
View Source
var OptionIndependentDNSCache = Note{
	Name:              "independent-dns-cache",
	Description:       "`independent_cache` DNS option",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "INDEPENDENT_DNS_CACHE",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-independent-dns-cache",
}
View Source
var OptionInlineACME = Note{
	Name:              "inline-acme-options",
	Description:       "inline ACME options in TLS",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "INLINE_ACME_OPTIONS",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-inline-acme-to-certificate-provider",
}
View Source
var OptionLegacyDNSAddressFilter = Note{
	Name:              "legacy-dns-address-filter",
	Description:       "Legacy Address Filter Fields in DNS rules",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "LEGACY_DNS_ADDRESS_FILTER",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-address-filter-fields-to-response-matching",
}
View Source
var OptionLegacyDNSRuleStrategy = Note{
	Name:              "legacy-dns-rule-strategy",
	Description:       "Legacy `strategy` DNS rule action option",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "LEGACY_DNS_RULE_STRATEGY",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-dns-rule-action-strategy-to-rule-items",
}
View Source
var OptionLegacyDomainStrategyOptions = Note{
	Name:              "legacy-domain-strategy-options",
	Description:       "legacy domain strategy options",
	DeprecatedVersion: "1.12.0",
	ScheduledVersion:  "1.14.0",
	EnvName:           "LEGACY_DOMAIN_STRATEGY_OPTIONS",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-domain-strategy-options",
}
View Source
var OptionLegacyRuleSetDownloadDetour = Note{
	Name:              "legacy-rule-set-download-detour",
	Description:       "legacy `download_detour` remote rule-set option",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "LEGACY_RULE_SET_DOWNLOAD_DETOUR",
}
View Source
var OptionLegacyTailscaleEndpointDialer = Note{
	Name:              "legacy-tailscale-endpoint-dialer",
	Description:       "legacy dialer options in Tailscale endpoint",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "LEGACY_TAILSCALE_ENDPOINT_DIALER",
}
View Source
var OptionMissingDomainResolver = Note{
	Name:              "missing-domain-resolver",
	Description:       "missing `route.default_domain_resolver` or `domain_resolver` in dial fields",
	DeprecatedVersion: "1.12.0",
	ScheduledVersion:  "1.14.0",
	EnvName:           "MISSING_DOMAIN_RESOLVER",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-outbound-dns-rule-items-to-domain-resolver",
}
View Source
var OptionOutboundDNSRuleItem = Note{
	Name:              "outbound-dns-rule-item",
	Description:       "outbound DNS rule item",
	DeprecatedVersion: "1.12.0",
	ScheduledVersion:  "1.14.0",
	EnvName:           "OUTBOUND_DNS_RULE_ITEM",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-outbound-dns-rule-items-to-domain-resolver",
}
View Source
var OptionRuleSetIPCIDRAcceptEmpty = Note{
	Name:              "dns-rule-rule-set-ip-cidr-accept-empty",
	Description:       "Legacy `rule_set_ip_cidr_accept_empty` DNS rule item",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "DNS_RULE_RULE_SET_IP_CIDR_ACCEPT_EMPTY",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-address-filter-fields-to-response-matching",
}
View Source
var OptionStoreRDRC = Note{
	Name:              "store-rdrc",
	Description:       "`store_rdrc` cache file option",
	DeprecatedVersion: "1.14.0",
	ScheduledVersion:  "1.16.0",
	EnvName:           "STORE_RDRC",
	MigrationLink:     "https://sing-box.sagernet.org/migration/#migrate-store-rdrc",
}

Functions

func Report

func Report(ctx context.Context, feature Note)

Types

type Manager

type Manager interface {
	ReportDeprecated(feature Note)
}

func NewStderrManager

func NewStderrManager(logger logger.Logger) Manager

type Note

type Note struct {
	Name              string
	Description       string
	DeprecatedVersion string
	ScheduledVersion  string
	EnvName           string
	MigrationLink     string
}

func (Note) Impending

func (n Note) Impending() bool

func (Note) Message

func (n Note) Message() string
func (n Note) MessageWithLink() string

Jump to

Keyboard shortcuts

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