next.plugins.Keys.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otoroshi_2.12 Show documentation
Show all versions of otoroshi_2.12 Show documentation
Lightweight api management on top of a modern http reverse proxy
The newest version!
package otoroshi.next.plugins
import otoroshi.models.{ApiKey, ApikeyTuple, JwtInjection}
import otoroshi.next.models._
import otoroshi.next.proxy.NgExecutionReport
import play.api.libs.typedmap.TypedKey
import play.api.mvc.Result
import java.util.concurrent.atomic.AtomicBoolean
import scala.concurrent.Future
object Keys {
val MatchedRoutesKey = TypedKey[Seq[String]]("otoroshi.next.core.MatchedRoutes")
val ContextualPluginsKey = TypedKey[NgContextualPlugins]("otoroshi.next.core.ContextualPlugins")
val ReportKey = TypedKey[NgExecutionReport]("otoroshi.next.core.Report")
val MatchedRouteKey = TypedKey[NgMatchedRoute]("otoroshi.next.core.NgMatchedRoute")
val RouteKey = TypedKey[NgRoute]("otoroshi.next.core.Route")
val BackendKey = TypedKey[NgTarget]("otoroshi.next.core.Backend")
val PossibleBackendsKey = TypedKey[NgBackend]("otoroshi.next.core.PossibleBackends")
val PreExtractedApikeyKey = TypedKey[Either[Option[ApiKey], ApiKey]]("otoroshi.next.core.PreExtractedApikey")
val PreExtractedApikeyTupleKey = TypedKey[ApikeyTuple]("otoroshi.next.core.PreExtractedApikeyTuple")
val BodyAlreadyConsumedKey = TypedKey[AtomicBoolean]("otoroshi.next.core.BodyAlreadyConsumed")
val JwtInjectionKey = TypedKey[JwtInjection]("otoroshi.next.core.JwtInjection")
val ResultTransformerKey = TypedKey[Function[Result, Future[Result]]]("otoroshi.next.core.ResultTransformer")
val ResponseAddHeadersKey = TypedKey[Seq[(String, String)]]("otoroshi.next.core.ResponseAddHeaders")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy