com.bybutter.sisyphus.starter.grpc.transcoding.EmptyRouterFunction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sisyphus-grpc-transcoding-starter Show documentation
Show all versions of sisyphus-grpc-transcoding-starter Show documentation
Starter for building gRPC server which with HTTP and gRPC Transcoding in Sisyphus Framework
package com.bybutter.sisyphus.starter.grpc.transcoding
import org.springframework.web.reactive.function.server.HandlerFunction
import org.springframework.web.reactive.function.server.RouterFunction
import org.springframework.web.reactive.function.server.ServerRequest
import org.springframework.web.reactive.function.server.ServerResponse
import reactor.core.publisher.Mono
/**
* Empty router just return empty mono.
*/
internal object EmptyRouterFunction : RouterFunction {
override fun route(request: ServerRequest): Mono> {
return Mono.empty()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy