asproxy

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PROXY_FOR_TYPE_GZGS = 1

Variables

This section is empty.

Functions

func GetProxy

func GetProxy(proxyType int) string

func GetProxyForDB

func GetProxyForDB(proxyType int) string

Types

type Mapper

type Mapper interface {
	Save(entity XicidailiProxyEntity) XicidailiProxyEntity
	SaveAll(entityArr []XicidailiProxyEntity) []XicidailiProxyEntity
	FindList(proxyType int) []XicidailiProxyEntity
}

type XicidailiProxyEntity

type XicidailiProxyEntity struct {
	ProxyId      int64
	Ip           string
	ProxyForType int
	Port         int
	// 请求类型 http 或 https
	ReqType       string
	UpdateTime    string
	SourceUrl     string
	TimeTolive    string
	AnonymousInfo string
	Area          string
	Provider      string
	// 是否可用 0 不可用 1 可用
	Usable int
}

type XicidailiProxyMapper

type XicidailiProxyMapper struct {
}

func (*XicidailiProxyMapper) DelById

func (mapper *XicidailiProxyMapper) DelById(id int64) int

func (*XicidailiProxyMapper) FindList

func (mapper *XicidailiProxyMapper) FindList(proxyForType int) []XicidailiProxyEntity

func (*XicidailiProxyMapper) FindOne

func (mapper *XicidailiProxyMapper) FindOne(proxyForType int) XicidailiProxyEntity

func (*XicidailiProxyMapper) Save

func (*XicidailiProxyMapper) SaveAll

func (mapper *XicidailiProxyMapper) SaveAll(entityArr []XicidailiProxyEntity) []XicidailiProxyEntity

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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