base

package
v1.3.5-alpha-0814 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSpaceEngineClient

type BaseSpaceEngineClient struct {
	Key     string
	APIHost 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 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