Documentation ¶
Index ¶
- Variables
- func FullMethod(service, method string) string
- func StreamClientInterceptor(reportable ClientReportable) grpc.StreamClientInterceptor
- func StreamServerInterceptor(reportable ServerReportable) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(reportable ClientReportable) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(reportable ServerReportable) grpc.UnaryServerInterceptor
- type ClientReportable
- type GRPCType
- type NoopReporter
- type Reporter
- type ServerReportable
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllCodes = []codes.Code{ codes.OK, codes.Canceled, codes.Unknown, codes.InvalidArgument, codes.DeadlineExceeded, codes.NotFound, codes.AlreadyExists, codes.PermissionDenied, codes.Unauthenticated, codes.ResourceExhausted, codes.FailedPrecondition, codes.Aborted, codes.OutOfRange, codes.Unimplemented, codes.Internal, codes.Unavailable, codes.DataLoss, } )
Functions ¶
func FullMethod ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(reportable ClientReportable) grpc.StreamClientInterceptor
StreamClientInterceptor is a gRPC client-side interceptor that provides reporting for Stream RPCs.
func StreamServerInterceptor ¶
func StreamServerInterceptor(reportable ServerReportable) grpc.StreamServerInterceptor
StreamServerInterceptor is a gRPC server-side interceptor that provides reporting for Streaming RPCs.
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(reportable ClientReportable) grpc.UnaryClientInterceptor
UnaryClientInterceptor is a gRPC client-side interceptor that provides reporting for Unary RPCs.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(reportable ServerReportable) grpc.UnaryServerInterceptor
UnaryServerInterceptor is a gRPC server-side interceptor that provides reporting for Unary RPCs.
Types ¶
type ClientReportable ¶
type NoopReporter ¶
type NoopReporter struct{}
func (NoopReporter) PostMsgReceive ¶
func (NoopReporter) PostMsgReceive(interface{}, error, time.Duration)
func (NoopReporter) PostMsgSend ¶
func (NoopReporter) PostMsgSend(interface{}, error, time.Duration)
Click to show internal directories.
Click to hide internal directories.