Documentation
¶
Index ¶
- func ErrorsInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func GetAccessInterceptor(client descAccess.AccessV1Client) ...
- func GetAccessStreamInterceptor(client descAccess.AccessV1Client) ...
- func LogInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func MetricsInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func ServerTracingInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- type GRPCStatusInterface
- type RateLimiterInterceptor
- type UserClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorsInterceptor ¶
func ErrorsInterceptor( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
func GetAccessInterceptor ¶
func GetAccessInterceptor(client descAccess.AccessV1Client) func( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
func GetAccessStreamInterceptor ¶
func GetAccessStreamInterceptor(client descAccess.AccessV1Client) func( srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler, ) error
func LogInterceptor ¶
func LogInterceptor( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
func MetricsInterceptor ¶
func MetricsInterceptor( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
func ServerTracingInterceptor ¶
func ServerTracingInterceptor( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
Types ¶
type GRPCStatusInterface ¶
type RateLimiterInterceptor ¶
type RateLimiterInterceptor struct {
// contains filtered or unexported fields
}
func NewRateLimiterInterceptor ¶
func NewRateLimiterInterceptor(limiter *rate_limiter.TokenBucketLimiter) *RateLimiterInterceptor
func (*RateLimiterInterceptor) Unary ¶
func (rli *RateLimiterInterceptor) Unary( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (interface{}, error)
type UserClaims ¶
Click to show internal directories.
Click to hide internal directories.