Module Lastfm_generic

module Lastfm_generic: sig .. end

API to various lastfm protocols (generic modules).


type client = {
   client : string;
   version : string;
}

Records for login and client

type login = {
   user : string;
   password : string;
}
module type Http_t = sig .. end

This is the type of Http request API that the modules require.

module type Audioscrobbler_t = sig .. end

This is the type of the Audioscrobbler API.

module type Radio_t = sig .. end

This is the type of the Radio API.

module Audioscrobbler_generic: 
functor (Http : Http_t) -> Audioscrobbler_t

Generic implementation of Audioscrobbler, independent from the Http request.

module Radio_generic: 
functor (Http : Http_t) -> Radio_t

Generic implementation of the Radio API, independant from the Http request.