fofa

package
v1.3.5-alpha0828 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FofaClient

type FofaClient struct {
	*base.BaseSpaceEngineClient
	// contains filtered or unexported fields
}

FofaClient a fofa client can be used to make queries

func NewClient

func NewClient(email, key string) *FofaClient

func NewClientEx

func NewClientEx(email, key string, apiHost string) *FofaClient

func (*FofaClient) Query

func (c *FofaClient) Query(page, pageSize int, args ...string) (*gjson.Result, error)

func (*FofaClient) UserProfile

func (c *FofaClient) UserProfile() (raw []byte, err error)

type User

type User struct {
	Email          string `json:"email,omitempty"`
	Avatar         string `json:"avatar,omitempty"`
	Err            string `json:"errmsg,omitempty"`
	Fcoin          int    `json:"fcoin,omitempty"`
	RemainApiQuery int64  `json:"remain_api_query,omitempty"`
	Vip            bool   `json:"bool,omitempty"`
}

User struct for fofa user

Jump to

Keyboard shortcuts

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