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

templates.ScalaServer.txt.PowerApiTrait.template.scala Maven / Gradle / Ivy

Go to download

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 scala.language.adhocExtensions
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: afd26781b33ccdf5468a0844519d95457ad4e722
                  MATRIX: 732->364|879->418|907->420|918->423|988->472|1016->473|1052->482|1068->489|1101->501|1130->503|1300->648|1335->662|1372->671|1401->672|1431->676|1477->706|1517->708|1547->711|1578->716|1616->733|1649->739|1664->745|1699->759|1770->803|1786->809|1819->820|1853->824|1881->825|1909->826
                  LINES: 17->14|22->15|23->16|23->16|23->16|24->17|24->17|24->17|24->17|26->19|33->26|33->26|33->26|33->26|34->27|34->27|34->27|35->28|35->28|35->28|35->28|35->28|35->28|35->28|35->28|35->28|36->29|37->30|37->30
                  -- GENERATED --
              */
          




© 2015 - 2025 Weber Informatics LLC | Privacy Policy