Documentation ¶
Index ¶
- func CheckSecretInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func CheckToken(token string) (string, string, bool)
- func LoggerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func Oprtation() func(c *gin.Context)
- func PermissionControl() func(c *gin.Context)
- func RecoveryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func ZapLogger() func(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSecretInterceptor ¶
func CheckSecretInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
CheckSecretInterceptor check token valid
func CheckToken ¶
CheckToken check token is valid
func LoggerInterceptor ¶
func LoggerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
LoggerInterceptor grpc middleware log
func RecoveryInterceptor ¶
func RecoveryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
RecoveryInterceptor get rpc panic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.