subscription

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deduplication

func Deduplication(ctx context.Context, servers []option.Outbound) []option.Outbound

Types

type Manager

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

func NewSubscriptionManager

func NewSubscriptionManager(ctx context.Context, logger logger.Logger, cacheFile *cachefile.CacheFile, rawSubscriptions []option.Subscription) (*Manager, error)

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) PostStart

func (m *Manager) PostStart() error

func (*Manager) Start

func (m *Manager) Start() error

func (*Manager) Subscriptions

func (m *Manager) Subscriptions() []*Subscription

type ProcessOptions

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

func NewProcessOptions

func NewProcessOptions(options option.OutboundProcessOptions) (*ProcessOptions, error)

func (*ProcessOptions) Process

func (o *ProcessOptions) Process(outbounds []boxOption.Outbound) []boxOption.Outbound

type Rename

type Rename struct {
	From *regexp.Regexp
	To   string
}

type Subscription

type Subscription struct {
	option.Subscription

	Servers     []boxOption.Outbound
	LastUpdated time.Time
	LastEtag    string
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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