templates.ScalaServer.txt.PowerApiTrait.template.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pekko-grpc-codegen_2.13 Show documentation
Show all versions of pekko-grpc-codegen_2.13 Show documentation
Apache Pekko gRPC - Support for building streaming gRPC servers and clients on top of Pekko Streams.
The newest version!
package templates.ScalaServer.txt
import _root_.play.twirl.api.TwirlFeatureImports._
import _root_.play.twirl.api.TwirlHelperImports._
import _root_.play.twirl.api.Html
import _root_.play.twirl.api.JavaScript
import _root_.play.twirl.api.Txt
import _root_.play.twirl.api.Xml
object PowerApiTrait extends _root_.play.twirl.api.BaseScalaTemplate[play.twirl.api.TxtFormat.Appendable,_root_.play.twirl.api.Format[play.twirl.api.TxtFormat.Appendable]](play.twirl.api.TxtFormat) with _root_.play.twirl.api.Template1[org.apache.pekko.grpc.gen.scaladsl.Service,play.twirl.api.TxtFormat.Appendable] {
/*
* Copyright (C) 2018-2021 Lightbend Inc.
*/
def apply/*14.2*/(service: org.apache.pekko.grpc.gen.scaladsl.Service):play.twirl.api.TxtFormat.Appendable = {
_display_ {
{
Seq[Any](format.raw/*15.1*/("""
"""),_display_(/*16.2*/org/*16.5*/.apache.pekko.grpc.gen.Constants.DoNotEditComment),format.raw/*16.54*/("""
"""),format.raw/*17.1*/("""package """),_display_(/*17.10*/service/*17.17*/.packageName),format.raw/*17.29*/("""
"""),format.raw/*19.1*/("""import org.apache.pekko
import pekko.grpc.PekkoGrpcGenerated
/*
* Generated by Apache Pekko gRPC. DO NOT EDIT.
*/
@PekkoGrpcGenerated
trait """),_display_(/*26.8*/{service.name}),format.raw/*26.22*/("""PowerApi """),format.raw/*26.31*/("""{"""),format.raw/*26.32*/("""
"""),_display_(/*27.4*/for(method <- service.methods) yield /*27.34*/ {_display_(Seq[Any](format.raw/*27.36*/("""
"""),format.raw/*28.3*/("""def """),_display_(/*28.8*/{method.nameSafe}),format.raw/*28.25*/("""(in: """),_display_(/*28.31*/method/*28.37*/.parameterType),format.raw/*28.51*/(""", metadata: pekko.grpc.scaladsl.Metadata): """),_display_(/*28.95*/method/*28.101*/.returnType),format.raw/*28.112*/("""
""")))}),format.raw/*29.4*/("""
"""),format.raw/*30.1*/("""}"""),format.raw/*30.2*/("""
"""))
}
}
}
def render(service:org.apache.pekko.grpc.gen.scaladsl.Service): play.twirl.api.TxtFormat.Appendable = apply(service)
def f:((org.apache.pekko.grpc.gen.scaladsl.Service) => play.twirl.api.TxtFormat.Appendable) = (service) => apply(service)
def ref: this.type = this
}
/*
-- GENERATED --
SOURCE: codegen/src/main/twirl/templates/ScalaServer/PowerApiTrait.scala.txt
HASH: 22cf7673b6b3bb45377a5a9bbcb1f79e80ddc2b0
MATRIX: 694->364|841->418|869->420|880->423|950->472|978->473|1014->482|1030->489|1063->501|1092->503|1262->648|1297->662|1334->671|1363->672|1393->676|1439->706|1479->708|1509->711|1540->716|1578->733|1611->739|1626->745|1661->759|1732->803|1748->809|1781->820|1815->824|1843->825|1871->826
LINES: 16->14|21->15|22->16|22->16|22->16|23->17|23->17|23->17|23->17|25->19|32->26|32->26|32->26|32->26|33->27|33->27|33->27|34->28|34->28|34->28|34->28|34->28|34->28|34->28|34->28|34->28|35->29|36->30|36->30
-- GENERATED --
*/
© 2015 - 2025 Weber Informatics LLC | Privacy Policy