v1

package
v0.0.0-...-3ec0304 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Strings for errors
	ErrPermissionDenied  = "you are not authorized make this request"
	ErrInternalGRPCError = "an internal-to-ims grpc error happened"

	LoggingPackageName            = "interceptors.authorization.imsapi.v1"
	LogIncomingRequest            = "ims api request made"
	LogIncomingRequestMethodKey   = "method"
	LogValidating                 = "validating authorization for rpc method"
	LogValidatingMethodKey        = LogIncomingRequestMethodKey
	LogEnforcingTrialPeriodFailed = "enforcing the trial period failed"

	RPCGetVersionInformation = "GetVersionInformation"
)

Variables

This section is empty.

Functions

func SetupInterceptor

func SetupInterceptor(inputLog *zap.Logger)

func UnaryInterceptor

func UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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