package ocamlrss

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type date = {
  1. year : int;
  2. month : int;
  3. day : int;
  4. hour : int;
  5. minute : int;
  6. second : int;
  7. zone : int;
  8. week_day : int;
}
val since_epoch : date -> float
val float_to_date : float -> date
val string_of_date : ?fmt:string -> date -> string
type email = string
type url = string
type category = {
  1. mutable cat_name : string;
  2. mutable cat_domain : url option;
}
type image = {
  1. mutable image_url : url;
  2. mutable image_title : string;
  3. mutable image_height : int option;
  4. mutable image_width : int option;
  5. mutable image_desc : string option;
}
type text_input = {
  1. mutable ti_title : string;
  2. mutable ti_desc : string;
  3. mutable ti_name : string;
}
type enclosure = {
  1. mutable encl_url : url;
  2. mutable encl_length : int;
  3. mutable encl_type : string;
}
type guid = {
  1. mutable guid_name : string;
}
type source = {
  1. mutable src_name : string;
  2. mutable src_url : url;
}
type item = {
  1. mutable item_title : string option;
  2. mutable item_desc : string option;
  3. mutable item_pubdate : date option;
  4. mutable item_author : email option;
  5. mutable item_categories : category list;
  6. mutable item_comments : url option;
  7. mutable item_enclosure : enclosure option;
  8. mutable item_guid : guid option;
  9. mutable item_source : source option;
}
type channel = {
  1. mutable ch_title : string;
  2. mutable ch_desc : string;
  3. mutable ch_language : string option;
  4. mutable ch_managing_editor : email option;
  5. mutable ch_webmaster : email option;
  6. mutable ch_pubdate : date option;
  7. mutable ch_last_build_date : date option;
  8. mutable ch_categories : category list;
  9. mutable ch_generator : string option;
  10. mutable ch_docs : url option;
  11. mutable ch_ttl : int option;
  12. mutable ch_image : image option;
  13. mutable ch_text_input : text_input option;
  14. mutable ch_items : item list;
}
val item : ?title:string -> ?link:url -> ?desc:string -> ?pubdate:date -> ?author:email -> ?cats:category list -> ?comments:url -> ?encl:enclosure -> ?guid:guid -> ?source:source -> unit -> item
val channel : title:string -> link:url -> desc:string -> ?language:string -> ?copyright:string -> ?managing_editor:email -> ?webmaster:email -> ?pubdate:date -> ?last_build_date:date -> ?cats:category list -> ?generator:string -> ?docs:url -> ?ttl:int -> ?image:image -> ?text_input:text_input -> item list -> channel
val copy_item : item -> item
val copy_channel : channel -> channel
val keep_n_items : int -> channel -> channel
val sort_items_by_date : item list -> item list
val merge_channels : channel -> channel -> channel
val channel_of_file : string -> channel
val channel_of_string : string -> channel
val channel_of_channel : in_channel -> channel
val print_channel : ?date_fmt:string -> ?encoding:string -> Format.formatter -> channel -> unit
val print_file : ?date_fmt:string -> ?encoding:string -> string -> channel -> unit
OCaml

Innovation. Community. Security.