Documentation ¶
Index ¶
- func ConvertGrpcHttpError(err error) int
- func GrpcClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
- func GrpcServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
- func HTTPStatusFromCode(code codes.Code) int
- func NewUnaryClient(service string, resolver naming.Resolver) (*grpc.ClientConn, error)
- func NewUnaryServer() *grpc.Server
- func UnWrapStatusError(err error) error
- func WrapStatusError(err error) error
- type ClientConn
- type HealthImpl
- type MetadataIO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGrpcHttpError ¶
func GrpcClientInterceptor ¶
func GrpcClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor
func GrpcServerInterceptor ¶
func GrpcServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor
func HTTPStatusFromCode ¶
func NewUnaryClient ¶
func NewUnaryServer ¶
func UnWrapStatusError ¶
func WrapStatusError ¶
Types ¶
type ClientConn ¶
type ClientConn = grpc.ClientConn
type HealthImpl ¶
type HealthImpl struct{}
func (*HealthImpl) Check ¶
func (h *HealthImpl) Check(ctx context.Context, args *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthImpl) Watch ¶
func (h *HealthImpl) Watch(*grpc_health_v1.HealthCheckRequest, grpc_health_v1.Health_WatchServer) error
type MetadataIO ¶
func (MetadataIO) ForeachKey ¶
func (w MetadataIO) ForeachKey(handler func(key, val string) error) error
func (MetadataIO) Set ¶
func (w MetadataIO) Set(key, val string)
Click to show internal directories.
Click to hide internal directories.