grpcutil

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpStatusErrorMetadata = "aserto-http-statuscode"
)

Variables

This section is empty.

Functions

func CustomErrorHandler added in v0.0.11

func CustomErrorHandler(ctx context.Context, gtw *runtime.ServeMux, ms runtime.Marshaler, w http.ResponseWriter, r *http.Request, err error)

Types

type Middleware

type Middleware interface {
	Unary() grpc.UnaryServerInterceptor
	Stream() grpc.StreamServerInterceptor
}

type Middlewares

type Middlewares []Middleware

func (Middlewares) AsGRPCOptions

func (m Middlewares) AsGRPCOptions() (grpc.ServerOption, grpc.ServerOption)

Jump to

Keyboard shortcuts

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