Documentation ¶
Index ¶
- type BBQData
- type BBQResult
- type Client
- func (c *Client) GetBBQSubdomains(req *SubdomainsRequest) chan *BBQResult
- func (c *Client) GetStatistics(req *GetStatisticsRequest) (*GetStatisticsResponse, error)
- func (c *Client) GetSubdomains(req *SubdomainsRequest) chan *Result
- func (c *Client) PutSubdomains(req *PutSubdomainsRequest) (*PutSubdomainsResponse, error)
- type GetStatisticsRequest
- type GetStatisticsResponse
- type PutSubdomainsRequest
- type PutSubdomainsResponse
- type Result
- type SubdomainsRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BBQData ¶ added in v0.1.5
type BBQData struct { Domain string `json:"domain"` Subdomain string `json:"subdomain"` StatusCode string `json:"dns-status-code"` A []string `json:"a,omitempty"` CNAME []string `json:"cname,omitempty"` AAAA []string `json:"aaaa,omitempty"` MX []string `json:"mx,omitempty"` SOA []string `json:"soa,omitempty"` NS []string `json:"ns,omitempty"` Wildcard bool `json:"wildcard"` HTTPUrl string `json:"http_url,omitempty"` HTTPStatusCode int `json:"http_status_code,omitempty"` HTTPContentLength int `json:"http_content_length,omitempty"` HTTPTitle string `json:"http_title,omitempty"` }
type BBQResult ¶ added in v0.1.5
type BBQResult struct { Data []byte Reader *io.ReadCloser Error error }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for making requests to chaos API
func (*Client) GetBBQSubdomains ¶ added in v0.1.5
func (c *Client) GetBBQSubdomains(req *SubdomainsRequest) chan *BBQResult
func (*Client) GetStatistics ¶
func (c *Client) GetStatistics(req *GetStatisticsRequest) (*GetStatisticsResponse, error)
GetStatistics returns the statistics for a given domain.
func (*Client) GetSubdomains ¶
func (c *Client) GetSubdomains(req *SubdomainsRequest) chan *Result
GetSubdomains returns the subdomains for a given domain.
func (*Client) PutSubdomains ¶
func (c *Client) PutSubdomains(req *PutSubdomainsRequest) (*PutSubdomainsResponse, error)
PutSubdomains uploads the subdomains to Chaos API.
type GetStatisticsRequest ¶
type GetStatisticsRequest struct {
Domain string
}
GetStatisticsRequest is the request for a domain statistics
type GetStatisticsResponse ¶
type GetStatisticsResponse struct {
Subdomains uint64 `json:"subdomains"`
}
GetStatisticsResponse is the response for a statistics request
type PutSubdomainsRequest ¶
PutSubdomainsRequest is the request for uploading subdomains.
type PutSubdomainsResponse ¶
type PutSubdomainsResponse struct{}
PutSubdomainsResponse is the response for a subdomains upload request.
type Result ¶
type Result struct { Subdomain string Reader *io.ReadCloser Error error }
Result is the response for a host subdomains.
type SubdomainsRequest ¶ added in v0.1.5
SubdomainsRequest is the request for a host subdomains.
Click to show internal directories.
Click to hide internal directories.