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 HostSearchResult
- type Provider
Constants ¶
View Source
const ( ProviderName = "ipapi" ResultTTL = 1 * time.Hour )
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"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.