provider

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Proxies    *proxy.ProxyList `yaml:"proxies"`
	Types      string           `yaml:"type"`
	Country    string           `yaml:"country"`
	NotCountry string           `yaml:"not_country"`
	Speed      string           `yaml:"speed"`
	Filter     string           `yaml:"filter"`
}

type Clash

type Clash struct {
	Base
}

Clash provides functions that make proxies support clash client

func (Clash) CleanProxies

func (c Clash) CleanProxies() (proxies proxy.ProxyList)

CleanProxies cleans unsupported proxy type of clash

func (Clash) Provide

func (c Clash) Provide() string

Provide of clash generates providers for clash configuration

type Provider

type Provider interface {
	Provide() string
}

type SIP002Sub

type SIP002Sub struct {
	Base
}

func (SIP002Sub) Provide

func (sub SIP002Sub) Provide() string

type SSRSub

type SSRSub struct {
	Base
}

func (SSRSub) Provide

func (sub SSRSub) Provide() string

type SSSub

type SSSub struct {
	Base
}

func (SSSub) Provide

func (sub SSSub) Provide() string

type Surge

type Surge struct {
	Base
}

Surge provides functions that make proxies support clash client

func (Surge) Provide

func (s Surge) Provide() string

Provide of Surge generates proxy list supported by surge

type TrojanSub

type TrojanSub struct {
	Base
}

func (TrojanSub) Provide

func (sub TrojanSub) Provide() string

type VmessSub

type VmessSub struct {
	Base
}

func (VmessSub) Provide

func (sub VmessSub) Provide() string

Jump to

Keyboard shortcuts

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