Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JSONMarshal = json.Marshal JSONUnmarshal = json.Unmarshal )
Functions ¶
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(defaultErr cherry.ErrConstruct) grpc.UnaryClientInterceptor
UnaryClientInterceptor -- grpc client middleware to decode cherry error from grpc error. If used with "github.com/grpc-ecosystem/go-grpc-middleware".ChainUnaryClient it must be last in chain to work correctly.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(defaultErr cherry.ErrConstruct) grpc.UnaryServerInterceptor
UnaryServerInterceptor -- middleware for grpc server to encode cherry error to grpc error. If used with "github.com/grpc-ecosystem/go-grpc-middleware".ChainUnaryServer it must be first in chain to work correctly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.