All Downloads are FREE. Search and download functionalities are using the official Maven repository.

models.canary.scala Maven / Gradle / Ivy

package otoroshi.models

import otoroshi.env.Env
import scala.concurrent.{ExecutionContext, Future}

case class ServiceCanaryCampaign(canaryUsers: Long, standardUsers: Long)

trait CanaryDataStore {

  def destroyCanarySession(serviceId: String)(implicit ec: ExecutionContext, env: Env): Future[Boolean]

  def isCanary(serviceId: String, trackingId: String, traffic: Double, reqNumber: Int, config: GlobalConfig)(implicit
      ec: ExecutionContext,
      env: Env
  ): Future[Boolean]

  def canaryCampaign(serviceId: String)(implicit ec: ExecutionContext, env: Env): Future[ServiceCanaryCampaign]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy