cherrygrpc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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