akka.grpc.interop.GrpcServer.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of akka-grpc-interop-tests_2.13 Show documentation
Show all versions of akka-grpc-interop-tests_2.13 Show documentation
Akka gRPC - Support for building streaming gRPC servers and clients on top of Akka Streams.
/*
* Copyright (C) 2018-2023 Lightbend Inc.
*/
package akka.grpc.interop
/**
* Glue code to start a gRPC server (either akka-grpc or io.grpc) to test against
*/
abstract class GrpcServer[T] {
@throws[Exception]
def start(args: Array[String]): T
def getPort(binding: T): Int
@throws[Exception]
def stop(binding: T): Unit
}