base

package
v1.4.4-alpha1202-loadi... Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRandomDelay

func ApplyRandomDelay(delayRange int)

ApplyRandomDelay 应用随机延迟

Types

type BaseSpaceEngineClient

type BaseSpaceEngineClient struct {
	Key     string
	BaseUrl string
}

func NewBaseSpaceEngineClient

func NewBaseSpaceEngineClient(key string, host string) *BaseSpaceEngineClient

func (*BaseSpaceEngineClient) Do

func (c *BaseSpaceEngineClient) Do(method, path string, opts ...poc.PocConfigOption) (*SpaceEngineResponse, error)

func (*BaseSpaceEngineClient) Get

func (*BaseSpaceEngineClient) Post

type BaseSpaceEngineConfig

type BaseSpaceEngineConfig struct {
	APIKey         string `app:"name:api_key,verbose:API Key,desc:APIKey / Token,id:1"`
	UserIdentifier string `app:"name:user_identifier,verbose:用户信息,desc:email / username,id:2"`
	Domain         string `app:"name:domain,verbose:域名,desc:域名,id:3"`
}

type IUserProfile

type IUserProfile interface {
	UserProfile() ([]byte, error)
}

type NetSpaceEngineResult

type NetSpaceEngineResult struct {
	Addr                string
	FromEngine          string
	Latitude, Longitude float64
	HtmlTitle           string
	Domains             string
	Province            string
	Url                 string
	ConfirmHttps        bool
	Host                string
	City                string
	Asn                 string
	Location            string
	ServiceProvider     string
	FromFilter          string
	Fingerprints        string
	Banner              string
}

type QueryConfig

type QueryConfig struct {
	RandomDelayRange int // 随机延迟范围(秒),0 表示无延迟
	RetryTimes       int // 重试次数,0 表示不重试
}

QueryConfig 查询配置

type SpaceEngineResponse

type SpaceEngineResponse struct {
	Request     *http.Request
	Response    *http.Response
	ResponseRaw []byte
	Body        []byte
	StatusCode  int
}

Jump to

Keyboard shortcuts

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