sources

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSource

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

func (*BaseSource) Name

func (s *BaseSource) Name() string

type KuaidailiSource

type KuaidailiSource struct {
	BaseSource
}

func NewKuaidailiSource

func NewKuaidailiSource() *KuaidailiSource

func (*KuaidailiSource) Fetch

func (s *KuaidailiSource) Fetch() ([]*model.Proxy, error)

type OpenProxyListSource

type OpenProxyListSource struct {
	BaseSource
}

func NewOpenProxyListSource

func NewOpenProxyListSource() *OpenProxyListSource

func (*OpenProxyListSource) Fetch

func (s *OpenProxyListSource) Fetch() ([]*model.Proxy, error)

type Source

type Source interface {
	Name() string
	Fetch() ([]*model.Proxy, error)
}

Jump to

Keyboard shortcuts

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