rpcerror

package
v0.0.0-...-b349366 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: MIT Imports: 2 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamClientInterceptor

func StreamClientInterceptor(fn ConvertFunc) grpc.StreamClientInterceptor

StreamClientInterceptor applies fn to errors recieved by client.

func StreamServerInterceptor

func StreamServerInterceptor(fn ConvertFunc) grpc.StreamServerInterceptor

StreamServerInterceptor applies fn to errors returned by server.

func UnaryClientInterceptor

func UnaryClientInterceptor(fn ConvertFunc) grpc.UnaryClientInterceptor

UnaryClientInterceptor applies fn to errors recieved by client.

func UnaryServerInterceptor

func UnaryServerInterceptor(fn ConvertFunc) grpc.UnaryServerInterceptor

UnaryServerInterceptor applies fn to errors returned by server.

Types

type ConvertFunc

type ConvertFunc func(error) error

ConvertFunc converts error types

Jump to

Keyboard shortcuts

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