io.snice.gatling.diameter.protocol.DiameterComponents.scala Maven / Gradle / Ivy
The newest version!
package io.snice.gatling.diameter.protocol
import io.gatling.core.protocol.ProtocolComponents
import io.gatling.core.session.Session
import io.snice.gatling.diameter.engine.DiameterEngine
final case class DiameterComponents(protocol: DiameterProtocol,
engine: DiameterEngine)
extends ProtocolComponents {
override def onStart: Session => Session = {
engine.start(protocol.peers)
ProtocolComponents.NoopOnStart
}
override def onExit: Session => Unit = ProtocolComponents.NoopOnExit
}