package ip2proxy

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type meta_data = {
  1. fs : Stdlib.in_channel;
  2. db_type : int;
  3. db_column : int;
  4. db_year : int;
  5. db_month : int;
  6. db_day : int;
  7. ipv4_db_count : Stdint.uint32;
  8. ipv4_base_addr : Stdint.uint32;
  9. ipv6_db_count : Stdint.uint32;
  10. ipv6_base_addr : Stdint.uint32;
  11. ipv4_index_base_addr : Stdint.uint32;
  12. ipv6_index_base_addr : Stdint.uint32;
  13. ipv4_column_size : Stdint.uint32;
  14. ipv6_column_size : Stdint.uint32;
}
type ip2proxy_record = {
  1. country_short : string;
  2. country_long : string;
  3. region : string;
  4. city : string;
  5. isp : string;
  6. proxy_type : string;
  7. is_proxy : int;
  8. domain : string;
  9. usage_type : string;
  10. asn : string;
  11. asys : string;
  12. last_seen : int;
  13. threat : string;
  14. provider : string;
}
exception Ip2proxy_exception of string
val get_api_version : string
val open_db : string -> meta_data
val close_db : meta_data -> unit
val query : meta_data -> string -> ip2proxy_record
OCaml

Innovation. Community. Security.