zhima

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuntdbPersister

type BuntdbPersister struct {
}

func NewBuntdbPersister

func NewBuntdbPersister() *BuntdbPersister

func (*BuntdbPersister) Load

func (b *BuntdbPersister) Load() ([]*zhima_proxy_pool.Proxy, error)

func (*BuntdbPersister) Save

func (b *BuntdbPersister) Save(proxies []*zhima_proxy_pool.Proxy) error

type Wrapper

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

func NewZhimaWrapper

func NewZhimaWrapper(pool *zhima_proxy_pool.ZhimaProxyPool, deleteLimit int) *Wrapper

func (*Wrapper) Delete

func (z *Wrapper) Delete(proxy string) bool

func (*Wrapper) Get

func (z *Wrapper) Get(prefer proxy_pool.Prefer) (proxy_pool.IProxy, error)

func (*Wrapper) Stop

func (z *Wrapper) Stop() error

Jump to

Keyboard shortcuts

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