service

package
v0.0.0-...-6b8208f Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemCache

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

MemCache memory cache

func NewMemCache

func NewMemCache() *MemCache

NewMemCache rt

func (*MemCache) DeleteProxy

func (c *MemCache) DeleteProxy(p proxyinabox.Proxy)

DeleteProxy rt

func (*MemCache) HasProxy

func (c *MemCache) HasProxy(proxy string) bool

HasProxy rt

func (*MemCache) HostLimiter

func (c *MemCache) HostLimiter(req *http.Request) bool

HostLimiter rt

func (*MemCache) IPLimiter

func (c *MemCache) IPLimiter(req *http.Request) bool

IPLimiter rt

func (*MemCache) PickProxy

func (c *MemCache) PickProxy(req *http.Request) (string, error)

PickProxy rt

func (*MemCache) SaveProxy

func (c *MemCache) SaveProxy(p proxyinabox.Proxy) error

SaveProxy rt

type ProxyService

type ProxyService struct {
	DB *gorm.DB
}

ProxyService mysql proxy service

func (*ProxyService) GetUnVerified

func (ps *ProxyService) GetUnVerified() (p []proxyinabox.Proxy, e error)

GetUnVerified get un verified proxies

Jump to

Keyboard shortcuts

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