Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControlInterceptor ¶
type AccessControlInterceptor struct {
// contains filtered or unexported fields
}
func NewAccessControlInterceptor ¶
func NewAccessControlInterceptor( logger log.Logger, adminServiceAllowedMethods []string, allowedNamespaces []string, ) *AccessControlInterceptor
func (*AccessControlInterceptor) Intercept ¶
func (i *AccessControlInterceptor) Intercept( ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (any, error)
func (*AccessControlInterceptor) StreamIntercept ¶
func (i *AccessControlInterceptor) StreamIntercept( service interface{}, serverStream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler, ) error
type TranslationInterceptor ¶ added in v0.1.4
type TranslationInterceptor struct {
// contains filtered or unexported fields
}
func NewTranslationInterceptor ¶ added in v0.1.4
func NewTranslationInterceptor( logger log.Logger, translators []Translator, ) *TranslationInterceptor
func (*TranslationInterceptor) Intercept ¶ added in v0.1.4
func (i *TranslationInterceptor) Intercept( ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (any, error)
func (*TranslationInterceptor) InterceptStream ¶ added in v0.1.4
func (i *TranslationInterceptor) InterceptStream( srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler, ) error
type Translator ¶ added in v0.1.4
type Translator interface {
MatchMethod(string) bool
TranslateRequest(any) (bool, error)
TranslateResponse(any) (bool, error)
Kind() string
}
func NewNamespaceNameTranslator ¶
func NewNamespaceNameTranslator(logger log.Logger, reqMap, respMap map[string]string) Translator
func NewSearchAttributeTranslator ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.