package equinoxe-cohttp

  1. Overview
  2. Docs

Module Equinoxe_cohttp.UserSource

A module to interact with Equinix user.

Sourcetype id

A unique identifier for a user.

Sourcetype config = {
  1. id : id;
  2. first_name : string;
  3. last_name : string;
  4. email : string;
  5. created_at : ODate.Unix.t;
  6. last_login_at : ODate.Unix.t;
}

Representation of a user configuration.

Sourceval id_of_string : string -> id
Sourceval to_string : config -> string

to_string config returns a string representing a user.

Sourceval get_current_user : t -> config io

get_current_user t returns the user interacting with the API.

Sourceval pp : config -> unit

pp config pretty-prints a user configuration.

OCaml

Innovation. Community. Security.