middleware

package
v0.0.0-...-f219ead Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL