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

akka.grpc.Codec.scala Maven / Gradle / Ivy

Go to download

Akka gRPC - Support for building streaming gRPC servers and clients on top of Akka Streams.

There is a newer version: 2.3.4
Show 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy