Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = types.Module{ {CreateFunc: NewGRPCConfig}, {CreateFunc: NewGRPC}, {CreateFunc: Adapter}, }
Functions ¶
This section is empty.
Types ¶
type AdapterOut ¶
func Adapter ¶
func Adapter(in AdapterIn) AdapterOut
type Config ¶
type Config struct { ListenAddr string WithReflection bool KeepaliveTime time.Duration KeepaliveTimeout time.Duration WithDebugLog bool WithServerMetrics bool SensitiveData *protoimpl.ExtensionInfo }
func NewGRPCConfig ¶
type Definition ¶
type Definition struct { Description *grpc.ServiceDesc Implementation any }
type Params ¶
type Params struct { dig.In GRPCDefinitions []Definition `group:"grpc_impl"` GRPCUnaryCustomInterceptors [][]grpc.UnaryServerInterceptor `group:"grpc_unary_interceptor"` ServerOpt []ServerOpt `group:"grpc_server_opt"` }
type ServerOpt ¶ added in v1.0.23
type ServerOpt func(*Config)
func WithSensitiveData ¶ added in v1.0.23
func WithSensitiveData(sensitiveData *protoimpl.ExtensionInfo) ServerOpt
Click to show internal directories.
Click to hide internal directories.