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 InitListCache[F[_]] = CreateLruMap[F, (String, String), (Int, ListLookup)]

    Permalink
  2. type InitSchemaCache[F[_]] = CreateLruMap[F, SchemaKey, (Int, SchemaLookup)]

    Permalink

    Ability to initialize the cache

  3. type ListLookup = Either[LookupFailureMap, SchemaList]

    Permalink
  4. type LookupFailureMap = 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

  5. case class LookupHistory(errors: Set[RegistryError], attempts: Int, lastAttempt: Instant) 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, *since last TTL invalidation*

    lastAttempt

    when Resolver tried to fetch it last time

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

    Permalink

    Resolves schemas from one or more Iglu schema registries

  7. class ResolverCache[F[_]] extends AnyRef

    Permalink

    Resolver cache and associated logic to (in)validate entities, based on TTL and registry responses (failure/success)

  8. type SchemaLookup = Either[LookupFailureMap, 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

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 ResolverCache

    Permalink
  4. package registries

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped