akka.grpc.Codec.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2018-2019 Lightbend Inc.
*/
package akka.grpc
import akka.util.ByteString
// TODO we could also try to use akka.http.scaladsl.coding, but that might be overkill since that is geared
// towards streaming use cases, and we need to compress each message separately.
abstract class Codec {
val name: String
def compress(bytes: ByteString): ByteString
def uncompress(bytes: ByteString): ByteString
}