template

package
v1.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMixedPort  = 8080
	DNSDefaultTag     = "default"
	DNSLocalTag       = "local"
	DNSLocalSetupTag  = "local_setup"
	DNSFakeIPTag      = "remote"
	DefaultDNS        = "tls://8.8.8.8"
	DefaultDNSLocal   = "https://223.5.5.5/dns-query"
	DefaultDefaultTag = "default"
	DefaultDirectTag  = "direct"
	DefaultBlockTag   = "block"
	DNSTag            = "dns"
	DefaultURLTestTag = "URLTest"
)

Variables

View Source
var Default = new(Template)

Functions

This section is empty.

Types

type ExtraGroup

type ExtraGroup struct {
	option.ExtraGroup
	// contains filtered or unexported fields
}

type Manager

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

func NewManager

func NewManager(ctx context.Context, logger logger.Logger, rawTemplates []option.Template) (*Manager, error)

func (*Manager) TemplateByName

func (m *Manager) TemplateByName(name string) *Template

type Template

type Template struct {
	option.Template
	// contains filtered or unexported fields
}

func (*Template) Render

func (t *Template) Render(ctx context.Context, metadata M.Metadata, profileName string, outbounds [][]boxOption.Outbound, subscriptions []*subscription.Subscription) (*boxOption.Options, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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