Documentation ¶
Index ¶
- Constants
- func NewProviderClient(c session.Session) (providers.ProviderClient, error)
- type Client
- func (c *Client) CreateTable(data []byte) (*table.Writer, error)
- func (c *Client) Enabled() bool
- func (c *Client) ExtractThreatIndicators(findRes []byte) (*providers.ThreatIndicators, error)
- func (c *Client) FindHost() ([]byte, error)
- func (c *Client) GetConfig() *session.Session
- func (c *Client) Initialise() error
- func (c *Client) Priority() *int32
- func (c *Client) RateHostData(findRes []byte, ratingConfigJSON []byte) (providers.RateResult, error)
- type Config
- type Header
- type HostSearchResult
- type Provider
- type Ptr
Constants ¶
View Source
const ( ProviderName = "ptr" ResultTTL = 30 * time.Minute DefaultNameserver = "1.1.1.1:53" )
Variables ¶
This section is empty.
Functions ¶
func NewProviderClient ¶
func NewProviderClient(c session.Session) (providers.ProviderClient, error)
Types ¶
type Client ¶
func (*Client) ExtractThreatIndicators ¶
func (c *Client) ExtractThreatIndicators(findRes []byte) (*providers.ThreatIndicators, error)
func (*Client) Initialise ¶
func (*Client) RateHostData ¶
type HostSearchResult ¶
type HostSearchResult struct { Raw json.RawMessage `json:"raw,omitempty"` RR []*Ptr `json:"rr,omitempty"` Msg dns.Msg `json:"msg,omitempty"` }
Click to show internal directories.
Click to hide internal directories.