Documentation ¶
Index ¶
- type Api
- func (myapi Api) GetConf() string
- func (myapi Api) Init(apiKey string, ipcheck bool) (myapi2 Api, err error)
- func (myapi Api) IsBlackList(response *JsonRecord) (status bool)
- func (myapi Api) IsMatch(response *JsonRecord) (status bool)
- func (myapi Api) IsWhiteList(response *JsonRecord) (status bool)
- func (myapi Api) ParseDNS(results []net.IP) (data JsonRecord, err error)
- func (myapi Api) Query(query string) (m JsonRecord, err error)
- func (myapi Api) QueryDNS(query string, retry int) (json []net.IP, err error)
- func (myapi Api) Score(response *JsonRecord) (score float64)
- func (myapi Api) ToggleSSL(ssl bool) (str string)
- func (myapi Api) Verify(status bool, verbose bool) (totalResults []Results, err error)
- func (myapi Api) WebScore(response *JsonRecord) (score float64)
- type JsonExtended
- type JsonReason
- type JsonRecord
- type JsonResults
- type Query
- type Results
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct { ApiMethod string DnsMethod string DnsType string // contains filtered or unexported fields }
Api struct for key, URL and method
func (Api) IsBlackList ¶
func (myapi Api) IsBlackList(response *JsonRecord) (status bool)
IsBlackList return if a result matched a blacklist
func (Api) IsMatch ¶
func (myapi Api) IsMatch(response *JsonRecord) (status bool)
isMatch return if a result matched a whitelist/blacklist
func (Api) IsWhiteList ¶
func (myapi Api) IsWhiteList(response *JsonRecord) (status bool)
IsWhiteList return if a result matched a whitelist
func (Api) ParseDNS ¶
func (myapi Api) ParseDNS(results []net.IP) (data JsonRecord, err error)
Preform a DNS query against the zetascan API
func (Api) Query ¶
func (myapi Api) Query(query string) (m JsonRecord, err error)
Query a domain/IP via any method (text, html, json, jsonx, dns)
func (Api) Score ¶
func (myapi Api) Score(response *JsonRecord) (score float64)
Return the score if a result matched a whitelist/blacklist on the MTA/default score
func (Api) WebScore ¶
func (myapi Api) WebScore(response *JsonRecord) (score float64)
Return the score if a result matched a whitelist/blacklist on the Webscore value
type JsonExtended ¶
type JsonReason ¶
type JsonRecord ¶
type JsonRecord struct { Results JsonResults `json:"results"` ExecutionTime int64 `json:"executionTime"` Status string `json:"status"` }
type JsonResults ¶
type JsonResults []struct { Item string `json:"item"` Found bool `json:"found"` Score float64 `json:"score"` WebScore float64 `json:"webscore"` FromSubnet bool `json:"fromSubnet"` Sources []string `json:"sources"` Wl bool `json:"wl"` Wldata string `json:"wldata"` Extended JsonExtended `json:"extended"` }
Click to show internal directories.
Click to hide internal directories.