com.bybutter.sisyphus.starter.grpc.transcoding.EnableHttpToGrpcTranscoding.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 com.bybutter.sisyphus.starter.grpc.transcoding.support.swagger.authentication.DefaultSwaggerConfig
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Import
/**
* Enable HTTP/json to gRPC/protobuf transcoding in current gRPC server.
* @property services Array the name of services which need to enable CORS in transcoding.
* Empty list for all supported services.
*/
@ComponentScan(basePackageClasses = [EnableHttpToGrpcTranscoding::class])
@Import(DefaultSwaggerConfig::class, GrpcTranscodingConfig::class)
annotation class EnableHttpToGrpcTranscoding(val services: Array = [])
© 2015 - 2025 Weber Informatics LLC | Privacy Policy