Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_PAGE_SIZE = 30 DEFAULT_PAGE_SIZE_MAX = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
var (
DefaultClient *Client
)
func (*Client) SetDevMode ¶
type Provider ¶
type Provider interface { // Name returns the name of the provider Name() string // Auth checks if the provider is valid to use Auth(*Session) bool // Search the result with provider Search(*Query) (chan *Result, error) }
Provider is the interface for all providers
type Query ¶
type Query struct { Query string `json:"query"` // input query QuakeQuery string `json:"quake_query"` // input query to quake query grammar FofaQuery string `json:"fofa_query"` // input query to fofa query grammar HunterQuery string `json:"hunter_query"` // input query to hunter query grammar NumberOfQuery int `json:"number_of_query"` // number of query, when use deep search mode, unlimited query number }
Query is the struct for storing the query You can set corresponding query for different providers
Click to show internal directories.
Click to hide internal directories.