interceptor

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// JournalID a random id used by log journal
	JournalID = "journal-id"
	// Authorization used by auth, both gateway and grpc
	Authorization = "authorization"
	// AuthorizationProxy used by signature, both gateway and grpc
	AuthorizationProxy = "authorization-proxy"
	// Date GMT format
	Date = "date"
	// Method http.XXXMethod
	Method = "method"
	// URI url encoded
	URI = "uri"
	// Body string body
	Body = "body"
	// XForwardedFor forwarded for
	XForwardedFor = "x-forwarded-for"
	// XForwardedHost forwarded host
	XForwardedHost = "x-forwarded-host"
)

Variables

This section is empty.

Functions

func RegisteAuthorizationProxyValidator added in v1.3.0

func RegisteAuthorizationProxyValidator(name string, handler proposal.SignatureHandler)

func RegisteAuthorizationValidator added in v1.3.0

func RegisteAuthorizationValidator(name string, handler proposal.UserinfoHandler)

func RegisteWhitelistingValidator added in v1.3.0

func RegisteWhitelistingValidator(name string, handler proposal.WhitelistingHandler)

func ResloveFileDescriptor added in v1.3.0

func ResloveFileDescriptor(gateway bool)

func StreamServerInterceptor added in v1.3.0

func StreamServerInterceptor() grpc.StreamServerInterceptor

func UnaryGatewayInterceptor added in v1.3.0

func UnaryGatewayInterceptor(logger *zap.Logger, notify proposal.NotifyHandler, metrics func(http.Handler), projectName string) grpc.UnaryClientInterceptor

func UnaryServerInterceptor added in v1.3.0

func UnaryServerInterceptor(logger *zap.Logger, notify proposal.NotifyHandler, metrics func(http.Handler), projectName string) grpc.UnaryServerInterceptor

Types

type SessionUserinfo

type SessionUserinfo struct{}

SessionUserinfo mark userinfo in context

type SignatureIdentifier

type SignatureIdentifier struct{}

SignatureIdentifier mark identifier in context

Jump to

Keyboard shortcuts

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