Documentation
¶
Index ¶
- func ConvertToStruct(data map[string]interface{}) (*structpb.Struct, error)
- func ConvertToValue(data map[string]interface{}) (map[string]*structpb.Value, error)
- func ToProtoValue(v interface{}) (*structpb.Value, error)
- func WithStreamTracing(tracer tracing.Tracer) grpc.StreamServerInterceptor
- func WithTracing(tracer tracing.Tracer) grpc.UnaryServerInterceptor
- type Config
- type Params
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToStruct ¶ added in v0.0.6
convertToStruct converts map[string]interface{} to *structpb.Struct
func ConvertToValue ¶ added in v0.0.6
func ToProtoValue ¶ added in v0.0.6
func WithStreamTracing ¶
func WithStreamTracing(tracer tracing.Tracer) grpc.StreamServerInterceptor
func WithTracing ¶
func WithTracing(tracer tracing.Tracer) grpc.UnaryServerInterceptor
Types ¶
type Params ¶ added in v0.0.2
type Params struct { UnaryInterceptors []grpc.UnaryServerInterceptor StreamInterceptors []grpc.StreamServerInterceptor Logger logger.Logger Tracer tracing.Tracer EnablePprof bool // Optional: enable pprof MonitorGoroutines bool // Optional: monitor goroutine count }
Click to show internal directories.
Click to hide internal directories.