grpcx_auth

package
v2.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamServerInterceptor

func StreamServerInterceptor(authorizer Authorizer) grpc.StreamServerInterceptor

StreamServerInterceptor returns a server interceptor function to authenticate and authorize stream RPC

func UnaryServerInterceptor

func UnaryServerInterceptor(authorizer Authorizer) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a server interceptor function to authenticate and authorize unary RPC

Types

type Authorizer

type Authorizer interface {
	Authorize(ctx context.Context, fullMethod string) (context.Context, error)
}

Jump to

Keyboard shortcuts

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