Documentation ¶
Index ¶
- func AppendCustomHeaderMiddleware(s service.Service, next fn) runtime.HandlerFunc
- func CustomMatcher(key string) (string, bool)
- func ErrorHandler(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, ...)
- func HTTPResponseModifier(ctx context.Context, w http.ResponseWriter, p proto.Message) error
- func RecoveryInterceptorOpt() grpc_recovery.Option
- func StreamAppendMetadataInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func UnaryAppendMetadataInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendCustomHeaderMiddleware ¶
func AppendCustomHeaderMiddleware(s service.Service, next fn) runtime.HandlerFunc
AppendCustomHeaderMiddleware appends custom headers
func CustomMatcher ¶
CustomMatcher is a callback function for gRPC-Gateway runtime.WithIncomingHeaderMatcher
func ErrorHandler ¶
func ErrorHandler(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, w http.ResponseWriter, r *http.Request, err error)
ErrorHandler is a callback function for gRPC-Gateway runtime.WithErrorHandler
func HTTPResponseModifier ¶
HTTPResponseModifier is a callback function for gRPC-Gateway runtime.WithForwardResponseOption
func RecoveryInterceptorOpt ¶
func RecoveryInterceptorOpt() grpc_recovery.Option
RecoveryInterceptorOpt - panic handler
func StreamAppendMetadataInterceptor ¶
func StreamAppendMetadataInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
StreamAppendMetadataInterceptor - append metadatas for stream
func UnaryAppendMetadataInterceptor ¶
func UnaryAppendMetadataInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
UnaryAppendMetadataInterceptor - append metadatas for unary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.