netlas

package
v0.0.0-...-8fcb2bd Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllSubdomains

func GetAllSubdomains(c *Client, domain string, outputCh *chan string) error

Types

type Client

type Client struct {
	APIKey string
	Client *retryablehttp.Client
}

Client struct for making requests to the netlas API

func NewClient

func NewClient(apiKey string) *Client

NewClient creates a new netlas client with the provided API key

func (*Client) GetDomainCount

func (c *Client) GetDomainCount(domain string) (*DomainCount, error)

GetDomainCount makes a request to the netlas API to get the total domain count for a given query

func (*Client) GetSubdomains

func (c *Client) GetSubdomains(domain string, start int) (*Domains, error)

GetSubDomains makes a request to the netlas API to get a list of domains for a given query and starting index

type Domain

type Domain struct {
	Name string `json:"domain"`
}

type DomainCount

type DomainCount struct {
	Count int `json:"count"`
}

type Domains

type Domains struct {
	Items []struct {
		Data Domain `json:"data"`
	} `json:"items"`
}

Jump to

Keyboard shortcuts

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