monix / monix-grpc

Apache License 2.0
6 stars 2 forks source link

monix-grpc

Continuous Integration

A library to write grpc client and servers in Scala using Monix.

Design Goals

Installation

sbt

Add the following to your project/plugins.sbt:

addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.4")

libraryDependencies +=
  "me.vican.jorge" %% "monix-grpc-codegen" % "0.0.0+46-e1776191"

Add the following to your build.sbt:

lazy val root = project
  .settings(
    Compile / PB.targets := Seq(
      scalapb.gen(grpc = false) -> (Compile / sourceManaged).value / "scalapb",
      monix.grpc.codegen.GrpcCodeGenerator -> (Compile / sourceManaged).value / "scalapb"
    ),

    libraryDependencies ++= Seq(
        "io.grpc" % "grpc-netty" % "1.39.0",
        "com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion
    )
  )

Generator options

Options can be set like:

      monix.grpc.codegen.GrpcCodeGenerator(serviceSuffix = "MySuffix") -> (Compile / sourceManaged).value / "scalapb"

The current options are:

Example projects:

Team

The current maintainers (people who can merge pull requests) are:

Credits