Documentation
¶
Index ¶
- Constants
- func RegisteAuthorizationProxyValidator(name string, handler proposal.SignatureHandler)
- func RegisteAuthorizationValidator(name string, handler proposal.UserinfoHandler)
- func RegisteWhitelistingValidator(name string, handler proposal.WhitelistingHandler)
- func ResloveFileDescriptor(gateway bool)
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryGatewayInterceptor(logger *zap.Logger, notify proposal.NotifyHandler, metrics func(http.Handler), ...) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(logger *zap.Logger, notify proposal.NotifyHandler, metrics func(http.Handler), ...) grpc.UnaryServerInterceptor
- type SessionUserinfo
- type SignatureIdentifier
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 SignatureIdentifier ¶
type SignatureIdentifier struct{}
SignatureIdentifier mark identifier in context
Click to show internal directories.
Click to hide internal directories.