Packages

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. Protected

Package Members

  1. package registries

Type Members

  1. type CacheEntry[A] = (StorageTime, A)

    Single entry stored in the cache.

    Single entry stored in the cache. Entry consists of the time item has been stored and the item itself.

  2. trait CreateResolverCache[F[_]] extends AnyRef
  3. type ListCacheEntry = (StorageTime, ListLookup)

    Cache entry for schema list lookup results

  4. type ListCacheKey = (Vendor, Name, Model)

    Key to identify stored schema list in the cache.

    Key to identify stored schema list in the cache. Consists of the schema's vendor, name and model

  5. type ListLookup = Either[LookupFailureMap, SchemaList]

    Validated schema list lookup result containing, cache result which is Json in case of success or Map of all currently failed repositories in case of failure

  6. type LookupFailureMap = Map[Registry, LookupHistory]

    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

  7. type Model = Int

    Schema's model

  8. type Name = String

    Schema's name

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

    Resolves schemas from one or more Iglu schema registries

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

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

  11. trait ResolverMutex[F[_], K] extends AnyRef
  12. type SchemaCacheEntry = (StorageTime, SchemaLookup)

    Cache entry for schema lookup results

  13. type SchemaContentList = NonEmptyList[SelfDescribingSchema[Json]]
  14. type SchemaContentListCacheEntry = (StorageTime, SchemaContentListLookup)

    Cache entry for schema content list lookup results

  15. type SchemaContentListLookup = Either[LookupFailureMap, SchemaContentList]

    Validated schema content list lookup result containing, cache result which is list of self describing schemas in case of success or Map of all currently failed repositories in case of failure

  16. type SchemaLookup = Either[LookupFailureMap, SchemaItem]

    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

  17. type StorageTime = FiniteDuration

    Indicates the moment in time when item has been stored in the cache

  18. type TTL = FiniteDuration

    Time to live for cached items

  19. type Vendor = String

    Schema's vendor

Value Members

  1. object CreateResolverCache
  2. object Resolver extends Serializable

    Companion object.

    Companion object. Lets us create a Resolver from a Json

  3. object ResolverCache
  4. object ResolverMutex

Inherited from AnyRef

Inherited from Any

Ungrouped