Documentation
¶
Index ¶
- type IdentityHandler
- func (h IdentityHandler) StreamClientInterceptor(cfg *conf.Configuration) grpc.StreamClientInterceptor
- func (h IdentityHandler) StreamServerInterceptor(cfg *conf.Configuration) grpc.StreamServerInterceptor
- func (h IdentityHandler) UnaryClientInterceptor(cfg *conf.Configuration) grpc.UnaryClientInterceptor
- func (h IdentityHandler) UnaryServerInterceptor(cfg *conf.Configuration) grpc.UnaryServerInterceptor
- type TenantHandler
- func (h TenantHandler) StreamClientInterceptor(cfg *conf.Configuration) grpc.StreamClientInterceptor
- func (h TenantHandler) StreamServerInterceptor(cfg *conf.Configuration) grpc.StreamServerInterceptor
- func (h TenantHandler) UnaryClientInterceptor(cfg *conf.Configuration) grpc.UnaryClientInterceptor
- func (h TenantHandler) UnaryServerInterceptor(cfg *conf.Configuration) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityHandler ¶
type IdentityHandler struct{}
IdentityHandler is a grpc interceptor for identity. Be careful, server interceptor call will conflict with grpc JWT interceptor because they call the same context setter method `security.WithContext`, but this only pass identity id.
func (IdentityHandler) StreamClientInterceptor ¶
func (h IdentityHandler) StreamClientInterceptor(cfg *conf.Configuration) grpc.StreamClientInterceptor
func (IdentityHandler) StreamServerInterceptor ¶
func (h IdentityHandler) StreamServerInterceptor(cfg *conf.Configuration) grpc.StreamServerInterceptor
func (IdentityHandler) UnaryClientInterceptor ¶
func (h IdentityHandler) UnaryClientInterceptor(cfg *conf.Configuration) grpc.UnaryClientInterceptor
func (IdentityHandler) UnaryServerInterceptor ¶
func (h IdentityHandler) UnaryServerInterceptor(cfg *conf.Configuration) grpc.UnaryServerInterceptor
type TenantHandler ¶
type TenantHandler struct{}
TenantHandler is a grpc interceptor for tenant id.
func (TenantHandler) StreamClientInterceptor ¶
func (h TenantHandler) StreamClientInterceptor(cfg *conf.Configuration) grpc.StreamClientInterceptor
func (TenantHandler) StreamServerInterceptor ¶
func (h TenantHandler) StreamServerInterceptor(cfg *conf.Configuration) grpc.StreamServerInterceptor
func (TenantHandler) UnaryClientInterceptor ¶
func (h TenantHandler) UnaryClientInterceptor(cfg *conf.Configuration) grpc.UnaryClientInterceptor
func (TenantHandler) UnaryServerInterceptor ¶
func (h TenantHandler) UnaryServerInterceptor(cfg *conf.Configuration) grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.