Package

com.snowplowanalytics.weather.providers

openweather

Permalink

package openweather

Visibility
  1. Public
  2. All

Type Members

  1. trait Client[Response[_]] extends AnyRef

    Permalink

    Base client trait with defined client methods such a historyById, historyByName common for subclasses

    Base client trait with defined client methods such a historyById, historyByName common for subclasses

    Response

    response wrapper for Client subclass, such as Future all receive logic should be wrapped in it

  2. trait HttpAsyncTransport extends AnyRef

    Permalink

    Basic trait responsible for receiving data via HTTP Also supposed to be responsible for establishing HTTP connection

  3. class HttpTransport extends HttpAsyncTransport

    Permalink

    Scalaj based transport

  4. class OwmAsyncClient extends Client[AsyncWeather]

    Permalink

    Asynchronous OpenWeatherMap client

  5. class OwmCacheClient extends Client[ValidatedWeather] with WeatherCache[History]

    Permalink

    Blocking OpenWeatherMap client with history (only) cache Uses AsyncOwmClient under the hood, have same method set, which return Weather instead of Future[Weather]

    Blocking OpenWeatherMap client with history (only) cache Uses AsyncOwmClient under the hood, have same method set, which return Weather instead of Future[Weather]

    WARNING. This client uses pro.openweathermap.org for data access, It will not work with free OWM licenses.

  6. trait WeatherCache[W <: OwmResponse] extends AnyRef

    Permalink

    Defines logic for store records (LRU) and obtaining bucket's key (day, place)

    Defines logic for store records (LRU) and obtaining bucket's key (day, place)

    W

    exact type of weather records to store. However now it could be used only only for History lookups

Value Members

  1. object Api

    Permalink

    Module for various predefined values in OWM specification

  2. object Errors

    Permalink
  3. object OwmAsyncClient

    Permalink

    Companion object for async client

  4. object OwmCacheClient

    Permalink

    Companion object for OwmClient with default transport based on akka http

  5. object Responses

    Permalink

    Case classes used for extracting data from JSON

  6. object WeatherCache

    Permalink

Ungrouped