Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = types.Module{ {CreateFunc: NewGRPCConfig}, {CreateFunc: NewGRPC}, {CreateFunc: Adapter}, {CreateFunc: newServersHelper}, }
Functions ¶
This section is empty.
Types ¶
type AdapterOut ¶
func Adapter ¶
func Adapter(in AdapterIn) AdapterOut
type Config ¶
type Config struct {
Throttler Throttler
ListenAddr string
WithReflection bool
KeepaliveTime time.Duration
KeepaliveTimeout time.Duration
WithDebugLog bool
WithServerMetrics bool
WithMetadata bool
LogRedactor *bishamon.Redactor
MaxReceiveMessageSize int
MaxSendMessageSize int
}
func NewGRPCConfig ¶
type Definition ¶
type Definition struct {
Description *grpc.ServiceDesc
Implementation any
}
type LoggerThrottler ¶ added in v1.2.0
type LoggerThrottler struct {
// contains filtered or unexported fields
}
func (*LoggerThrottler) Accept ¶ added in v1.2.0
func (lt *LoggerThrottler) Accept(method string) bool
type MockThrottler ¶ added in v1.2.0
type MockThrottler struct{}
func (*MockThrottler) Accept ¶ added in v1.2.0
func (*MockThrottler) Accept(_ string) bool
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, error)
type ServersHelper ¶ added in v1.2.0
type ServersHelper struct {
GRPCDefinitions []Definition
}
func (*ServersHelper) AddDefinition ¶ added in v1.2.0
func (s *ServersHelper) AddDefinition(def Definition)
Click to show internal directories.
Click to hide internal directories.