template

package
v1.0.0-beta.17 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-2.0 Imports: 24 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(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