datasrcs

package
v3.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ShadowServerWhoisURL is the URL for the ShadowServer whois server.
	ShadowServerWhoisURL = "asn.shadowserver.org"
)

Variables

This section is empty.

Functions

func GetAllSources

func GetAllSources(sys systems.System) []service.Service

GetAllSources returns a slice of all data source services, initialized and ready.

func SelectedDataSources added in v3.10.4

func SelectedDataSources(cfg *config.Config, avail []service.Service) []service.Service

SelectedDataSources uses the config and available data sources to return the selected data sources.

Types

type AlienVault

type AlienVault struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

AlienVault is the Service that handles access to the AlienVault data source.

func NewAlienVault

func NewAlienVault(sys systems.System) *AlienVault

NewAlienVault returns he object initialized, but not yet started.

func (*AlienVault) Description added in v3.11.0

func (a *AlienVault) Description() string

Description implements the Service interface.

func (*AlienVault) OnRequest added in v3.11.0

func (a *AlienVault) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*AlienVault) OnStart

func (a *AlienVault) OnStart() error

OnStart implements the Service interface.

type Cloudflare added in v3.9.0

type Cloudflare struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

Cloudflare is the Service that handles access to the Cloudflare data source.

func NewCloudflare added in v3.9.0

func NewCloudflare(sys systems.System) *Cloudflare

NewCloudflare returns he object initialized, but not yet started.

func (*Cloudflare) Description added in v3.11.0

func (c *Cloudflare) Description() string

Description implements the Service interface.

func (*Cloudflare) OnRequest added in v3.11.0

func (c *Cloudflare) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*Cloudflare) OnStart added in v3.9.0

func (c *Cloudflare) OnStart() error

OnStart implements the Service interface.

type DNSDB

type DNSDB struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

DNSDB is the Service that handles access to the DNSDB data source.

func NewDNSDB

func NewDNSDB(sys systems.System) *DNSDB

NewDNSDB returns he object initialized, but not yet started.

func (*DNSDB) Description added in v3.11.0

func (d *DNSDB) Description() string

Description implements the Service interface.

func (*DNSDB) OnRequest added in v3.11.0

func (d *DNSDB) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*DNSDB) OnStart

func (d *DNSDB) OnStart() error

OnStart implements the Service interface.

type DNSDumpster

type DNSDumpster struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

DNSDumpster is the Service that handles access to the DNSDumpster data source.

func NewDNSDumpster

func NewDNSDumpster(sys systems.System) *DNSDumpster

NewDNSDumpster returns he object initialized, but not yet started.

func (*DNSDumpster) Description added in v3.11.0

func (d *DNSDumpster) Description() string

Description implements the Service interface.

func (*DNSDumpster) OnRequest added in v3.11.0

func (d *DNSDumpster) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*DNSDumpster) OnStart

func (d *DNSDumpster) OnStart() error

OnStart implements the Service interface.

type NetworksDB

type NetworksDB struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

NetworksDB is the Service that handles access to the NetworksDB.io data source.

func NewNetworksDB

func NewNetworksDB(sys systems.System) *NetworksDB

NewNetworksDB returns he object initialized, but not yet started.

func (*NetworksDB) Description added in v3.11.0

func (n *NetworksDB) Description() string

Description implements the Service interface.

func (*NetworksDB) OnRequest added in v3.11.0

func (n *NetworksDB) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*NetworksDB) OnStart

func (n *NetworksDB) OnStart() error

OnStart implements the Service interface.

type Pastebin

type Pastebin struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

Pastebin is the Service that handles access to the Pastebin data source.

func NewPastebin

func NewPastebin(sys systems.System) *Pastebin

NewPastebin returns he object initialized, but not yet started.

func (*Pastebin) Description added in v3.11.0

func (p *Pastebin) Description() string

Description implements the Service interface.

func (*Pastebin) OnRequest added in v3.11.0

func (p *Pastebin) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*Pastebin) OnStart

func (p *Pastebin) OnStart() error

OnStart implements the Service interface.

type RADb

type RADb struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

RADb is the Service that handles access to the RADb data source.

func NewRADb

func NewRADb(sys systems.System) *RADb

NewRADb returns he object initialized, but not yet started.

func (*RADb) Description added in v3.11.0

func (r *RADb) Description() string

Description implements the Service interface.

func (*RADb) OnRequest added in v3.11.0

func (r *RADb) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*RADb) OnStart

func (r *RADb) OnStart() error

OnStart implements the Service interface.

type ShadowServer

type ShadowServer struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

ShadowServer is the Service that handles access to the ShadowServer data source.

func NewShadowServer

func NewShadowServer(sys systems.System) *ShadowServer

NewShadowServer returns he object initialized, but not yet started.

func (*ShadowServer) Description added in v3.11.0

func (s *ShadowServer) Description() string

Description implements the Service interface.

func (*ShadowServer) OnRequest added in v3.11.0

func (s *ShadowServer) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*ShadowServer) OnStart

func (s *ShadowServer) OnStart() error

OnStart implements the Service interface.

type TeamCymru

type TeamCymru struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

TeamCymru is the Service that handles access to the TeamCymru data source.

func NewTeamCymru

func NewTeamCymru(sys systems.System) *TeamCymru

NewTeamCymru returns he object initialized, but not yet started.

func (*TeamCymru) Description added in v3.11.0

func (t *TeamCymru) Description() string

Description implements the Service interface.

func (*TeamCymru) OnRequest added in v3.11.0

func (t *TeamCymru) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*TeamCymru) OnStart

func (t *TeamCymru) OnStart() error

OnStart implements the Service interface.

type Twitter

type Twitter struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

Twitter is the Service that handles access to the Twitter data source.

func NewTwitter

func NewTwitter(sys systems.System) *Twitter

NewTwitter returns he object initialized, but not yet started.

func (*Twitter) Description added in v3.11.0

func (t *Twitter) Description() string

Description implements the Service interface.

func (*Twitter) OnRequest added in v3.11.0

func (t *Twitter) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*Twitter) OnStart

func (t *Twitter) OnStart() error

OnStart implements the Service interface.

type URLScan

type URLScan struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

URLScan is the Service that handles access to the URLScan data source.

func NewURLScan

func NewURLScan(sys systems.System) *URLScan

NewURLScan returns he object initialized, but not yet started.

func (*URLScan) Description added in v3.11.0

func (u *URLScan) Description() string

Description implements the Service interface.

func (*URLScan) OnRequest added in v3.11.0

func (u *URLScan) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*URLScan) OnStart

func (u *URLScan) OnStart() error

OnStart implements the Service interface.

type Umbrella

type Umbrella struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

Umbrella is the Service that handles access to the Umbrella data source.

func NewUmbrella

func NewUmbrella(sys systems.System) *Umbrella

NewUmbrella returns he object initialized, but not yet started.

func (*Umbrella) Description added in v3.11.0

func (u *Umbrella) Description() string

Description implements the Service interface.

func (*Umbrella) OnRequest added in v3.11.0

func (u *Umbrella) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*Umbrella) OnStart

func (u *Umbrella) OnStart() error

OnStart implements the Service interface.

type WhoisXML

type WhoisXML struct {
	service.BaseService

	SourceType string
	// contains filtered or unexported fields
}

WhoisXML is the Service that handles access to the WhoisXML data source.

func NewWhoisXML

func NewWhoisXML(sys systems.System) *WhoisXML

NewWhoisXML returns the object initialized, but not yet started.

func (*WhoisXML) Description added in v3.11.0

func (w *WhoisXML) Description() string

Description implements the Service interface.

func (*WhoisXML) OnRequest added in v3.11.0

func (w *WhoisXML) OnRequest(ctx context.Context, args service.Args)

OnRequest implements the Service interface.

func (*WhoisXML) OnStart

func (w *WhoisXML) OnStart() error

OnStart implements the Service interface.

type WhoisXMLAdvanceRequest

type WhoisXMLAdvanceRequest struct {
	Search      string                       `json:"searchType"`
	Mode        string                       `json:"mode"`
	SearchTerms []WhoisXMLAdvanceSearchTerms `json:"advancedSearchTerms"`
}

WhoisXMLAdvanceRequest handles POST request Json with specific fields.

type WhoisXMLAdvanceSearchTerms

type WhoisXMLAdvanceSearchTerms struct {
	Field string `json:"field"`
	Term  string `json:"term"`
}

WhoisXMLAdvanceSearchTerms are variables for the api's query with specific fields in mind.

type WhoisXMLBasicRequest

type WhoisXMLBasicRequest struct {
	Search      string                   `json:"searchType"`
	Mode        string                   `json:"mode"`
	SearchTerms WhoisXMLBasicSearchTerms `json:"basicSearchTerms"`
}

WhoisXMLBasicRequest is for using general search terms such as including domains and excluding regions.

type WhoisXMLBasicSearchTerms

type WhoisXMLBasicSearchTerms struct {
	Include []string `json:"include"`
}

WhoisXMLBasicSearchTerms for searching by domain

type WhoisXMLResponse

type WhoisXMLResponse struct {
	Found int      `json:"domainsCount"`
	List  []string `json:"domainsList"`
}

WhoisXMLResponse handles WhoisXML response json.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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