package resolver
- Alphabetic
- By Inheritance
- resolver
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- package registries
Type Members
- 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.
- trait CreateResolverCache[F[_]] extends AnyRef
- type ListCacheEntry = (StorageTime, ListLookup)
Cache entry for schema list lookup results
- 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
- 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
- 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 - type Model = Int
Schema's model
- type Name = String
Schema's name
- 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
- class ResolverCache[F[_]] extends AnyRef
Resolver cache and associated logic to (in)validate entities, based on TTL and registry responses (failure/success)
- trait ResolverMutex[F[_], K] extends AnyRef
- type SchemaCacheEntry = (StorageTime, SchemaLookup)
Cache entry for schema lookup results
- type SchemaContentList = NonEmptyList[SelfDescribingSchema[Json]]
- type SchemaContentListCacheEntry = (StorageTime, SchemaContentListLookup)
Cache entry for schema content list lookup results
- 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
- 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
- type StorageTime = FiniteDuration
Indicates the moment in time when item has been stored in the cache
- type TTL = FiniteDuration
Time to live for cached items
- type Vendor = String
Schema's vendor
Value Members
- object CreateResolverCache
- object Resolver extends Serializable
Companion object.
Companion object. Lets us create a Resolver from a Json
- object ResolverCache
- object ResolverMutex