hunter

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL  = "https://hunter.qianxin.com/openApi/search?api-key=%s&search=%s&page=%d&page_size=%d"
	Size = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct{}

func (*Agent) Name

func (agent *Agent) Name() string

func (*Agent) Query

func (agent *Agent) Query(session *sources.Session, query *sources.Query) (chan sources.Result, error)

type Request

type Request struct {
	Username   string `json:"username"`
	ApiKey     string `json:"api-key"`
	Search     string `json:"search"`
	StartTime  string `json:"start_time"`
	EndTime    string `json:"end_time"`
	Page       int    `json:"page"`
	PageSize   int    `json:"page_size"`
	IsWeb      int    `json:"is_web"`
	StatusCode string `json:"status_code"`
}

type Response

type Response struct {
	Code int          `json:"code"`
	Data responseData `json:"data"`
	Msg  string       `json:"msg"`
}

type ResponseDataArr

type ResponseDataArr struct {
	IP     string `json:"ip"`
	Port   int    `json:"port"`
	Domain string `json:"domain"`
}

Jump to

Keyboard shortcuts

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