pic

package
v0.0.0-...-b33d680 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHeader

func DefaultHeader() *http.Header

func RandomClient

func RandomClient() *http.Client

func RandomProxy

func RandomProxy() *http.Transport

func RandomUA

func RandomUA() string

Types

type InfoMuti

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

func DefaultMuti

func DefaultMuti(dir string, ch chan int) *InfoMuti

func NewMuti

func NewMuti(maxThread, maxClientUse, retry int, dir string, ch chan int) *InfoMuti

func (*InfoMuti) Join

func (me *InfoMuti) Join()

func (*InfoMuti) Kill

func (me *InfoMuti) Kill()

func (*InfoMuti) MutiThread

func (me *InfoMuti) MutiThread()

type InfoPic

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

func Crawl

func Crawl(pid, retry int, dir string, client *http.Client) (ans InfoPic, e error)

type Queue

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

func (*Queue) Pop

func (me *Queue) Pop(c chan int)

func (*Queue) Push

func (me *Queue) Push(c chan int)

Jump to

Keyboard shortcuts

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