View Source GoogleApi.ContentWarehouse.V1.Model.TrawlerTCPIPInfo (google_api_content_warehouse v0.4.0)

To keep track of fetch connection endpoints. Note: You can use trawler::SourceIP(info) or trawler::DestinationIP(info) (as well as HasSourceIP/HasDestinationIP) in basictypes.h instead of accessing the packed strings directly. This will return a proper IPAddress. Never use the fixed32 based Source/Destination-IP in new code as they will go away (only IPv4).

Attributes

  • DestinationIPAddressPacked (type: String.t, default: nil) - Address of the destination host. Extract with trawler::DestinationIP() or decode with PackedStringToIPAddress().
  • DestinationPort (type: integer(), default: nil) -
  • SourceIPAddressPacked (type: String.t, default: nil) - Source address of the crawl machine we originated the fetch from. Extract with trawler::SourceIP() or decode with PackedStringToIPAddress().
  • SourcePort (type: integer(), default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.TrawlerTCPIPInfo{
  DestinationIPAddressPacked: String.t() | nil,
  DestinationPort: integer() | nil,
  SourceIPAddressPacked: String.t() | nil,
  SourcePort: integer() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.