# Packages
No description provided by the author
# Functions
AppendMetadataToOutgoingStreamContext appends metadata to outgoing context
https://godoc.org/google.golang.org/grpc#WithStreamInterceptor
conn, err := grpc.Dial("localhost:5000", grpc.WithStreamInterceptor(AppendMetadataToOutgoingStreamContext())).
AppendMetadataToOutgoingUnaryContext appends metadata to outgoing context
https://godoc.org/google.golang.org/grpc#WithUnaryInterceptor
conn, err := grpc.Dial("localhost:5000", grpc.WithUnaryInterceptor(AppendMetadataToOutgoingUnaryContext())).
No description provided by the author
No description provided by the author
LogOutgoingStreamRequest logs client request
https://godoc.org/google.golang.org/grpc#WithStreamInterceptor
conn, err := grpc.Dial("localhost:5000", grpc.WithStreamInterceptor(LogOutgoingStreamRequest())).
LogOutgoingUnaryRequest logs client request
https://godoc.org/google.golang.org/grpc#WithUnaryInterceptor
conn, err := grpc.Dial("localhost:5000", grpc.WithUnaryInterceptor(LogOutgoingUnaryRequest())).
LogStreamRequest returns error if Identity not set within context or user does not have required role
https://godoc.org/google.golang.org/grpc#StreamInterceptor
opts := []grpc.ServerOption{ grpc.UnaryInterceptor(LogStreamRequest(logger)), } s := grpc.NewServer(opts...) pb.LogStreamRequest(s, &server{}).
LogUnaryRequest returns error if Identity not set within context or user does not have required role
https://godoc.org/google.golang.org/grpc#UnaryInterceptor
opts := []grpc.ServerOption{ grpc.UnaryInterceptor(LogUnaryRequest(logger)), } s := grpc.NewServer(opts...) pb.RegisterGreeterServer(s, &server{}).
SetMetadataFromStreamRequest updates context with metadata
https://godoc.org/google.golang.org/grpc#StreamInterceptor
opts := []grpc.ServerOption{ grpc.UnaryInterceptor(SetMetadataFromStreamRequest()), } s := grpc.NewServer(opts...) pb.RegisterGreeterServer(s, &server{}).
SetMetadataFromUnaryRequest updates context with metadata
https://godoc.org/google.golang.org/grpc#UnaryInterceptor
opts := []grpc.ServerOption{ grpc.UnaryInterceptor(SetMetadataFromUnaryRequest()), } s := grpc.NewServer(opts...) pb.RegisterGreeterServer(s, &server{}).
TransformStreamIncomingError transforms outgoing apperrors to appropriate status codes
https://godoc.org/google.golang.org/grpc#WithStreamInterceptor
conn, err := grpc.Dial("localhost:5000", grpc.WithStreamInterceptor(TransformStreamIncomingError())).
TransformStreamOutgoingError transforms incoming error into app error
https://godoc.org/google.golang.org/grpc#StreamInterceptor
opts := []grpc.ServerOption{ grpc.UnaryInterceptor(TransformStreamOutgoingError()), } s := grpc.NewServer(opts...) pb.RegisterGreeterServer(s, &server{}).
TransformUnaryIncomingError transforms outgoing apperrors to appropriate status codes
https://godoc.org/google.golang.org/grpc#WithUnaryInterceptor
conn, err := grpc.Dial("localhost:5000", grpc.WithUnaryInterceptor(TransformUnaryIncomingError())).
TransformUnaryOutgoingError transforms incoming error into app error
https://godoc.org/google.golang.org/grpc#UnaryInterceptor
opts := []grpc.ServerOption{ grpc.UnaryInterceptor(TransformUnaryOutgoingError()), } s := grpc.NewServer(opts...) pb.RegisterGreeterServer(s, &server{}).