Documentation ¶
Index ¶
- func Decode(pbErr *pbzederrv1.Error) (zeerr.Error, error)
- func Encode(err error) *status.Status
- func StreamClientInterceptor() grpc.StreamClientInterceptor
- func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
- func UnaryClientInterceptor() grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
- type ErrorMapperFunc
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor() grpc.StreamClientInterceptor
func StreamServerInterceptor ¶
func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
func UnaryClientInterceptor ¶
func UnaryClientInterceptor() grpc.UnaryClientInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
Types ¶
type ErrorMapperFunc ¶
type Option ¶
type Option func(*serverConfig)
func WithErrorMapper ¶
func WithErrorMapper(errMapperFunc ErrorMapperFunc) Option
Click to show internal directories.
Click to hide internal directories.