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: 0

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
internal
app
pkg
log

Jump to

Keyboard shortcuts

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