rpc

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertGrpcHttpError

func ConvertGrpcHttpError(err error) int

func GrpcClientInterceptor

func GrpcClientInterceptor(tracer opentracing.Tracer) grpc.UnaryClientInterceptor

func GrpcServerInterceptor

func GrpcServerInterceptor(tracer opentracing.Tracer) grpc.UnaryServerInterceptor

func HTTPStatusFromCode

func HTTPStatusFromCode(code codes.Code) int

func NewUnaryClient

func NewUnaryClient(service string, resolver naming.Resolver) (*grpc.ClientConn, error)

func NewUnaryServer

func NewUnaryServer() *grpc.Server

func UnWrapStatusError

func UnWrapStatusError(err error) error

func WrapStatusError

func WrapStatusError(err error) error

Types

type ClientConn

type ClientConn = grpc.ClientConn

type HealthImpl

type HealthImpl struct{}

type MetadataIO

type MetadataIO struct {
	metadata.MD
}

func (MetadataIO) ForeachKey

func (w MetadataIO) ForeachKey(handler func(key, val string) error) error

func (MetadataIO) Set

func (w MetadataIO) Set(key, val string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL