Documentation
¶
Index ¶
- Variables
- func AuthGrpcMiddleware(ctx context.Context, unauthenticatedMethods []string) (grpc.UnaryServerInterceptor, error)
- func BuildHttpMethodMapping(ctx context.Context) map[string]string
- func RecoveryMiddleware() grpc.UnaryServerInterceptor
- func RequestIdMiddleware() grpc.UnaryServerInterceptor
- func RequestLoggingMiddleware(ctx context.Context) grpc.UnaryServerInterceptor
- type AuthenticationConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var GrpcFullServiceName = protos.FlowService_ServiceDesc.ServiceName
Functions ¶
func AuthGrpcMiddleware ¶
func RecoveryMiddleware ¶
func RecoveryMiddleware() grpc.UnaryServerInterceptor
RecoveryMiddleware returns a gRPC unary server interceptor that recovers from panics
func RequestIdMiddleware ¶
func RequestIdMiddleware() grpc.UnaryServerInterceptor
func RequestLoggingMiddleware ¶
func RequestLoggingMiddleware(ctx context.Context) grpc.UnaryServerInterceptor
Types ¶
type AuthenticationConfig ¶
type AuthenticationConfig struct {
OauthJwtCustomClaims map[string]string `json:"oauth_custom_claims" yaml:"oauth_custom_claims" mapstructure:"oauth_custom_claims"`
KeySetJSON string `json:"key_set_json" yaml:"key_set_json" mapstructure:"key_set_json"`
OAuthIssuerUrl string `json:"oauth_domain" yaml:"oauth_domain" mapstructure:"oauth_domain"`
Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
OAuthDiscoveryEnabled bool `json:"oauth_discovery_enabled" yaml:"oauth_discovery_enabled" mapstructure:"oauth_discovery_enabled"`
}
Click to show internal directories.
Click to hide internal directories.