Documentation
¶
Index ¶
- Variables
- func GenerateDefaultConfig(apiKey string) error
- type CategoriesConfig
- type CategorizationQuery
- type Config
- type CooccurrencesQuery
- type DomainQuery
- type DomainQueryMessage
- type DomainQueryResponse
- type DomainQueryType
- type DomainRRHistoryConfig
- type DomainRRHistoryFeaturesConfig
- type DomainRRHistoryPeriodConfig
- type DomainRRHistoryQuery
- type DomainScoreConfig
- type DomainTagsQuery
- type RelatedQuery
- type SecurityConfig
- type SecurityQuery
- type TaggingDatesConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultConfigPath string
)
Functions ¶
func GenerateDefaultConfig ¶
Generates a default config and writes it to ~/.domainstats/default.toml
Types ¶
type CategoriesConfig ¶
type CategorizationQuery ¶
type CategorizationQuery struct {
DomainQuery
Labels bool
}
func (*CategorizationQuery) Query ¶
func (q *CategorizationQuery) Query() DomainQueryResponse
type Config ¶
type Config struct {
APIKey string
Status bool
Categories CategoriesConfig
Cooccurrences DomainScoreConfig
Related DomainScoreConfig
Security SecurityConfig
TaggingDates TaggingDatesConfig
DomainRRHistory DomainRRHistoryConfig
}
func (*Config) DeriveHeader ¶
Derive the header of the CSV output file from the config
func (*Config) DeriveMessages ¶
func (c *Config) DeriveMessages(inv *goinvestigate.Investigate, domain string) (msgs []*DomainQueryMessage)
returns the list of Investigate functions to call for each domain
func (*Config) ExtractCSVSubRow ¶
Uses a goinvestigate response to derive the field values to go in a CSV row. Once all responses are processed with this function, the []string results can be concatenated to yield the final CSV row.
type CooccurrencesQuery ¶
type CooccurrencesQuery struct {
DomainQuery
}
func (*CooccurrencesQuery) Query ¶
func (q *CooccurrencesQuery) Query() DomainQueryResponse
type DomainQuery ¶
type DomainQuery struct {
Inv *goinvestigate.Investigate
Domain string
}
type DomainQueryMessage ¶
type DomainQueryMessage struct {
Q DomainQueryType
RespChan chan DomainQueryResponse
}
type DomainQueryResponse ¶
type DomainQueryResponse struct {
Resp interface{}
Err error
}
type DomainQueryType ¶
type DomainQueryType interface {
Query() DomainQueryResponse
}
type DomainRRHistoryConfig ¶
type DomainRRHistoryConfig struct {
Periods DomainRRHistoryPeriodConfig
Features DomainRRHistoryFeaturesConfig
}
type DomainRRHistoryFeaturesConfig ¶
type DomainRRHistoryFeaturesConfig struct {
Age bool
TTLsMin bool
TTLsMax bool
TTLsMean bool
TTLsMedian bool
TTLsStdDev bool
CountryCodes bool
ASNs bool
Prefixes bool
RIPSCount bool
RIPSDiversity bool
Locations bool
GeoDistanceSum bool
GeoDistanceMean bool
NonRoutable bool
MailExchanger bool
CName bool
FFCandidate bool
RIPSStability bool
BaseDomain bool
IsSubdomain bool
}
type DomainRRHistoryQuery ¶
type DomainRRHistoryQuery struct {
DomainQuery
QueryType string
}
func (*DomainRRHistoryQuery) Query ¶
func (q *DomainRRHistoryQuery) Query() DomainQueryResponse
type DomainScoreConfig ¶
type DomainTagsQuery ¶
type DomainTagsQuery struct {
DomainQuery
}
func (*DomainTagsQuery) Query ¶
func (q *DomainTagsQuery) Query() DomainQueryResponse
type RelatedQuery ¶
type RelatedQuery struct {
DomainQuery
}
func (*RelatedQuery) Query ¶
func (q *RelatedQuery) Query() DomainQueryResponse
type SecurityConfig ¶
type SecurityConfig struct {
DGAScore bool
Perplexity bool
Entropy bool
SecureRank2 bool
PageRank bool
ASNScore bool
PrefixScore bool
RIPScore bool
Popularity bool
Fastflux bool
Geodiversity bool
GeodiversityNormalized bool
TLDGeodiversity bool
Geoscore bool
KSTest bool
Attack bool
ThreatType bool
}
type SecurityQuery ¶
type SecurityQuery struct {
DomainQuery
}
func (*SecurityQuery) Query ¶
func (q *SecurityQuery) Query() DomainQueryResponse
Click to show internal directories.
Click to hide internal directories.