Liking cljdoc? Tell your friends :D

com.eldrix.nhspd.download


download-urlclj

(download-url url)
(download-url url out)

Download a file from the URL specified. Parameters:

  • url : the URL to fetch
  • out : (optional) the java.io.File/Writer/OutputStream to which to write. If no out specified, a temporary file will be created and returned.
Download a file from the URL specified.
Parameters:
- url : the URL to fetch
- out   : (optional) the java.io.File/Writer/OutputStream to which to write.
If no `out` specified, a temporary file will be created and returned.
sourceraw docstring

get-latest-releaseclj

(get-latest-release)

Returns information about the latest NHSPD release. At the moment, there is no available API for this, so we fake by using a local embedded datafile that can be updated with the latest release date and URL. The NHSPD is currently released quarterly.

Returns information about the latest NHSPD release.
 At the moment, there is no available API for this, so we fake by using a
 local embedded datafile that can be updated with the latest release date
and URL. The NHSPD is currently released quarterly.
sourceraw docstring

stream-latest-releaseclj

(stream-latest-release ch)
(stream-latest-release ch delete?)
(stream-latest-release ch delete? close?)

Blocking; streams the latest release of the NHSPD.

As we manually track the latest release in resources/nhspd.edn because as far as I know there's no download API, only a portal, we log a warning if the latest release is more than 3 months in the past.

Blocking; streams the latest release of the NHSPD.

As we manually track the latest release in resources/nhspd.edn because
as far as I know there's no download API, only a portal, we log a warning
if the latest release is more than 3 months in the past.
sourceraw docstring

stream-releaseclj

(stream-release f ch)
(stream-release f ch close?)

Blocking; stream postcode data from the zip file to the channel. Parameters:

  • f : filename or java.io.File for the NHSPD zip file.
  • ch : clojure.core.async channel
  • close? : optional; whether to close the channel when done.
Blocking; stream postcode data from the zip file to the channel.
Parameters:
- f      : filename or java.io.File for the NHSPD zip file.
- ch     : clojure.core.async channel
- close? : optional; whether to close the channel when done.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close