freeproxy

package module
v0.0.0-...-b6a3ff4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 35 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

freeproxy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportOptions

type ExportOptions struct {
	storage.QueryOptions
}

type Handler

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

func Init

func Init(cfg *config.Config) (*Handler, error)

func (*Handler) Cron

func (h *Handler) Cron(ctx context.Context) error

func (*Handler) Export

func (h *Handler) Export(ctx context.Context) error

func (*Handler) Fetch

func (h *Handler) Fetch(ctx context.Context) error

func (*Handler) Proxy

func (h *Handler) Proxy(ctx context.Context) error

func (*Handler) ProxySwitch

func (h *Handler) ProxySwitch(ctx context.Context) error

func (*Handler) SetCountry

func (h *Handler) SetCountry(ctx context.Context) error

func (*Handler) Summary

func (h *Handler) Summary(ctx context.Context) error

func (*Handler) Tidy

func (h *Handler) Tidy(ctx context.Context) error

type ProxyOptions

type ProxyOptions struct {
	BindAddress string
	Port        int
	Verbose     bool

	ID              uint
	CountryCodes    string
	NotCountryCodes string
}

type RenderData

type RenderData struct {
	TestURL string
	Items   []*RenderItem
}

type RenderItem

type RenderItem struct {
	Proxy  *storage.Proxy
	Config string
}

type SummaryData

type SummaryData struct {
	Items             []*SummaryGroup
	TotalProxyTypeMap map[string]int
	Total             int
}

type SummaryGroup

type SummaryGroup struct {
	CountryCode  string
	CountryEmoji string
	Country      string
	Total        int
	ProxyTypeMap map[string]int
}

Directories

Path Synopsis
cmd
freeproxy command
internal
app
pkg
log

Jump to

Keyboard shortcuts

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