watchtowerrpc.Watchtower.scala Maven / Gradle / Ivy
The newest version!
// Generated by Pekko gRPC. DO NOT EDIT.
package watchtowerrpc
import org.apache.pekko
import pekko.annotation.ApiMayChange
import pekko.grpc.PekkoGrpcGenerated
/**
* Watchtower is a service that grants access to the watchtower server
* functionality of the daemon.
*/
@PekkoGrpcGenerated
trait Watchtower {
/**
* lncli: tower info
* GetInfo returns general information concerning the companion watchtower
* including its public key and URIs where the server is currently
* listening for clients.
*/
def getInfo(in: watchtowerrpc.GetInfoRequest): scala.concurrent.Future[watchtowerrpc.GetInfoResponse]
}
@PekkoGrpcGenerated
object Watchtower extends pekko.grpc.ServiceDescription {
val name = "watchtowerrpc.Watchtower"
val descriptor: com.google.protobuf.Descriptors.FileDescriptor =
watchtowerrpc.WatchtowerProto.javaDescriptor;
object Serializers {
import pekko.grpc.scaladsl.ScalapbProtobufSerializer
val GetInfoRequestSerializer = new ScalapbProtobufSerializer(watchtowerrpc.GetInfoRequest.messageCompanion)
val GetInfoResponseSerializer = new ScalapbProtobufSerializer(watchtowerrpc.GetInfoResponse.messageCompanion)
}
@ApiMayChange
@PekkoGrpcGenerated
object MethodDescriptors {
import pekko.grpc.internal.Marshaller
import io.grpc.MethodDescriptor
import Serializers._
val getInfoDescriptor: MethodDescriptor[watchtowerrpc.GetInfoRequest, watchtowerrpc.GetInfoResponse] =
MethodDescriptor.newBuilder()
.setType(
MethodDescriptor.MethodType.UNARY
)
.setFullMethodName(MethodDescriptor.generateFullMethodName("watchtowerrpc.Watchtower", "GetInfo"))
.setRequestMarshaller(new Marshaller(GetInfoRequestSerializer))
.setResponseMarshaller(new Marshaller(GetInfoResponseSerializer))
.setSampledToLocalTracing(true)
.build()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy