Documentation
¶
Index ¶
- type LogAuthInterceptor
- func (interceptor *LogAuthInterceptor) GrpcAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func (interceptor *LogAuthInterceptor) GrpcRecoverInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- func (interceptor *LogAuthInterceptor) HTTPAuthInterceptor() gin.HandlerFunc
- func (interceptor *LogAuthInterceptor) HTTPGitHubAuthInterceptor() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogAuthInterceptor ¶
type LogAuthInterceptor struct { Mutex *sync.Mutex AuthService *logservice.LogAuthService }
func NewLogAuthInterceptor ¶
func NewLogAuthInterceptor(authService *logservice.LogAuthService) *LogAuthInterceptor
func (*LogAuthInterceptor) GrpcAuthInterceptor ¶
func (interceptor *LogAuthInterceptor) GrpcAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func (*LogAuthInterceptor) GrpcRecoverInterceptor ¶
func (interceptor *LogAuthInterceptor) GrpcRecoverInterceptor( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (resp interface{}, err error)
func (*LogAuthInterceptor) HTTPAuthInterceptor ¶
func (interceptor *LogAuthInterceptor) HTTPAuthInterceptor() gin.HandlerFunc
func (*LogAuthInterceptor) HTTPGitHubAuthInterceptor ¶
func (interceptor *LogAuthInterceptor) HTTPGitHubAuthInterceptor() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.