Documentation ¶
Index ¶
- Variables
- func EnrichCtxWithPassthroughEmail(identityHeader string) grpc.UnaryServerInterceptor
- func GatewayHeaderMatcherFunc(headerKeys map[string]bool) func(key string) (string, bool)
- func UnaryAuthenticationCheck() grpc.UnaryServerInterceptor
- func UnaryAuthorizationCheck(identityHeader string) grpc.UnaryServerInterceptor
- func UnaryCtxWithAudit(service *audit.Service) grpc.UnaryServerInterceptor
- func WithCors(h http.Handler, origin []string) http.Handler
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotAvailable = fmt.Errorf("function not available at the moment")
)
Functions ¶
func EnrichCtxWithPassthroughEmail ¶
func EnrichCtxWithPassthroughEmail(identityHeader string) grpc.UnaryServerInterceptor
func GatewayHeaderMatcherFunc ¶
GatewayHeaderMatcherFunc allows bypassing default runtime behaviour of prefixing headers with `grpc-gateway`
func UnaryAuthenticationCheck ¶
func UnaryAuthenticationCheck() grpc.UnaryServerInterceptor
func UnaryAuthorizationCheck ¶
func UnaryAuthorizationCheck(identityHeader string) grpc.UnaryServerInterceptor
func UnaryCtxWithAudit ¶
func UnaryCtxWithAudit(service *audit.Service) grpc.UnaryServerInterceptor
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(cookieCutter securecookie.Codec, domain string) *Session
func (Session) GatewayResponseModifier ¶
func (h Session) GatewayResponseModifier(ctx context.Context, w http.ResponseWriter, _ proto.Message) error
GatewayResponseModifier https://grpc-ecosystem.github.io/grpc-gateway/docs/mapping/customizing_your_gateway/ called just before RPC server response gets serialized for gateway
func (Session) UnaryGRPCRequestHeadersAnnotator ¶
func (h Session) UnaryGRPCRequestHeadersAnnotator() grpc.UnaryServerInterceptor
UnaryGRPCRequestHeadersAnnotator converts session cookies set in grpc metadata to context this requires decrypting the cookie and setting it as context
Click to show internal directories.
Click to hide internal directories.