Package

com.snowplowanalytics.iglu.client

resolver

Permalink

package resolver

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. resolver
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Cache[F[_]] = CreateLruMap[F, SchemaKey, SchemaLookupStamped]

    Permalink
  2. case class LookupHistory(errors: Set[RegistryError], attempts: Int, fatal: Boolean) extends Product with Serializable

    Permalink

    Helper class responsible for aggregating repository lookup errors Using to aggregate all errors for single schema for single repo during all retries

    Helper class responsible for aggregating repository lookup errors Using to aggregate all errors for single schema for single repo during all retries

    errors

    set of all errors happened during all attempts

    attempts

    amount of undertaken attempts

    fatal

    indicates whether among failures were unrecoverable ones (like invalid schema)

  3. type RepoFailuresMap = Map[Registry, LookupHistory]

    Permalink

    Map of all repositories to its aggregated state of failure None as value means repository already responded with not-found, meaning all previous 500-like failures could probably been discarded

  4. type RepositoryRefs = List[Registry]

    Permalink

    Our List (possibly empty) of Iglu repositories

  5. type ResolveResult = Either[ResolverError, Json]

    Permalink
  6. case class Resolver[F[_]](cache: Option[SchemaCache[F]], repos: List[Registry]) extends Product with Serializable

    Permalink

    Resolves schemas from one or more Iglu schema registries

  7. type Result = Either[RegistryError, Json]

    Permalink
  8. class SchemaCache[F[_]] extends AnyRef

    Permalink
  9. type SchemaLookup = Either[RepoFailuresMap, Json]

    Permalink

    Validated schema lookup result containing, cache result which is Json in case of Success or Map of all currently failed repositories in case of Failure

  10. type SchemaLookupStamped = (Int, SchemaLookup)

    Permalink

    Schema lookup result associated with timestamp (in seconds) it was stored at

  11. type SchemaLruMap[F[_]] = LruMap[F, SchemaKey, SchemaLookupStamped]

    Permalink

    Our LRU cache of schemas

Value Members

  1. object LookupHistory extends Serializable

    Permalink
  2. object Resolver extends Serializable

    Permalink

    Companion object.

    Companion object. Lets us create a Resolver from a Json

  3. object SchemaCache

    Permalink
  4. package registries

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped