providers

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPRegex = "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"
)

Variables

This section is empty.

Functions

func NewClient

func NewClient() *http.Client

func NewTransport

func NewTransport() *http.Transport

Types

type Format

type Format int
const (
	OPENVPN Format = iota
	HTML
)

type OpenVpn

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

func NewOpenVpn

func NewOpenVpn(logger logrus.FieldLogger, feedList []string) *OpenVpn

func (*OpenVpn) Download

func (c *OpenVpn) Download(src *entity.Feed) ([]models.Vpn, error)

func (*OpenVpn) List

func (c *OpenVpn) List() ([]models.Vpn, error)

func (*OpenVpn) Name

func (*OpenVpn) Name() string

type TxtDomains

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

func NewTxtDomains

func NewTxtDomains(logger logrus.FieldLogger, feedList []string) *TxtDomains

func (*TxtDomains) List

func (c *TxtDomains) List() ([]models.Vpn, error)

func (*TxtDomains) Load

func (c *TxtDomains) Load(body []byte) ([]models.Vpn, error)

func (*TxtDomains) MakeRequest

func (*TxtDomains) MakeRequest(urlList string) ([]byte, error)

func (*TxtDomains) Name

func (*TxtDomains) Name() string

Jump to

Keyboard shortcuts

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