interceptor

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 2 Imported by: 0

README

grpc-gateway request interceptors

Interceptors are middlewares that intercept REST requests before they are passed to the gRPC API implementation. Interceptors can read, and modify the REST requests sent to a service.

Documentation

Overview

Package interceptor provides gRPC interceptors for common middleware requirements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware interface {
	StreamInterceptor(
		interface{},
		grpc.ServerStream,
		*grpc.StreamServerInfo,
		grpc.StreamHandler,
	) error

	UnaryInterceptor(
		context.Context,
		interface{},
		*grpc.UnaryServerInfo,
		grpc.UnaryHandler,
	) (interface{}, error)
}

Middleware defines the interface for gRPC interceptor handlers.

Directories

Path Synopsis
Package log contains interceptor/middleware helpers for logging.
Package log contains interceptor/middleware helpers for logging.

Jump to

Keyboard shortcuts

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