MCPcopy Create free account

hub / github.com/amitshekhariitbhu/go-backend-clean-architecture / functions

Functions186 in github.com/amitshekhariitbhu/go-backend-clean-architecture

↓ 7 callersMethodCollection
(string)
mongo/mongo.go:18
↓ 6 callersFunctionNewUserRepository
(db mongo.Database, collection string)
repository/user_repository.go:18
↓ 4 callersMethodCreate
(c context.Context, task *Task)
domain/task.go:25
↓ 4 callersMethodDecode
(interface{})
mongo/mongo.go:41
↓ 4 callersMethodFetchByUserID
(c context.Context, userID string)
domain/task.go:26
↓ 4 callersMethodFind
(context.Context, interface{}, ...*options.FindOptions)
mongo/mongo.go:27
↓ 3 callersMethodAll
(context.Context, interface{})
mongo/mongo.go:42
↓ 3 callersFunctionCreateAccessToken
(user *domain.User, secret string, expiry int)
internal/tokenutil/tokenutil.go:11
↓ 3 callersMethodCreateAccessToken
(user *User, secret string, expiry int)
domain/login.go:19
↓ 3 callersFunctionCreateRefreshToken
(user *domain.User, secret string, expiry int)
internal/tokenutil/tokenutil.go:28
↓ 3 callersMethodCreateRefreshToken
(user *User, secret string, expiry int)
domain/login.go:20
↓ 3 callersMethodFindOne
(context.Context, interface{})
mongo/mongo.go:23
↓ 3 callersMethodInsertOne
(context.Context, interface{})
mongo/mongo.go:24
↓ 3 callersFunctionNewTaskUsecase
(taskRepository domain.TaskRepository, timeout time.Duration)
usecase/task_usecase.go:15
↓ 3 callersMethodNext
(context.Context)
mongo/mongo.go:40
↓ 2 callersMethodClient
()
mongo/mongo.go:19
↓ 2 callersMethodConnect
(context.Context)
mongo/mongo.go:47
↓ 2 callersMethodCreate
(c context.Context, user *User)
domain/user.go:21
↓ 2 callersMethodDatabase
(string)
mongo/mongo.go:46
↓ 2 callersMethodDisconnect
(context.Context)
mongo/mongo.go:48
↓ 2 callersFunctionExtractIDFromToken
(requestToken string, secret string)
internal/tokenutil/tokenutil.go:56
↓ 2 callersMethodGetByEmail
(c context.Context, email string)
domain/user.go:23
↓ 2 callersMethodGetByID
(c context.Context, id string)
domain/user.go:24
↓ 2 callersMethodGetUserByEmail
(c context.Context, email string)
domain/login.go:18
↓ 2 callersMethodPing
(context.Context)
mongo/mongo.go:51
↓ 2 callersFunctionsetUserID
(userID string)
api/controller/profile_controller_test.go:19
↓ 1 callersMethodAggregate
(context.Context, interface{})
mongo/mongo.go:29
↓ 1 callersFunctionApp
()
bootstrap/app.go:10
↓ 1 callersMethodCleanup
(func())
mongo/mocks/Cursor.go:74
↓ 1 callersMethodCleanup
(func())
mongo/mocks/Client.go:116
↓ 1 callersMethodCleanup
(func())
mongo/mocks/Collection.go:247
↓ 1 callersMethodCleanup
(func())
mongo/mocks/Database.go:49
↓ 1 callersMethodCleanup
(func())
mongo/mocks/SingleResult.go:28
↓ 1 callersMethodCleanup
(func())
domain/mocks/UserRepository.go:98
↓ 1 callersMethodCleanup
(func())
domain/mocks/LoginUsecase.go:82
↓ 1 callersMethodCleanup
(func())
domain/mocks/SignupUsecase.go:96
↓ 1 callersMethodCleanup
(func())
domain/mocks/TaskUsecase.go:56
↓ 1 callersMethodCleanup
(func())
domain/mocks/TaskRepository.go:56
↓ 1 callersMethodCleanup
(func())
domain/mocks/RefreshTokenUsecase.go:103
↓ 1 callersMethodCleanup
(func())
domain/mocks/ProfileUsecase.go:42
↓ 1 callersMethodClose
(context.Context)
mongo/mongo.go:39
↓ 1 callersMethodCloseDBConnection
()
bootstrap/app.go:17
↓ 1 callersFunctionCloseMongoDBConnection
(client mongo.Client)
bootstrap/database.go:45
↓ 1 callersMethodCountDocuments
(context.Context, interface{}, ...*options.CountOptions)
mongo/mongo.go:28
↓ 1 callersMethodDeleteOne
(context.Context, interface{})
mongo/mongo.go:26
↓ 1 callersMethodExtractIDFromToken
(requestToken string, secret string)
domain/refresh_token.go:20
↓ 1 callersMethodGetProfileByID
(c context.Context, userID string)
domain/profile.go:11
↓ 1 callersMethodGetUserByID
(c context.Context, id string)
domain/refresh_token.go:17
↓ 1 callersMethodInsertMany
(context.Context, []interface{})
mongo/mongo.go:25
↓ 1 callersFunctionIsAuthorized
(requestToken string, secret string)
internal/tokenutil/tokenutil.go:43
↓ 1 callersFunctionJwtAuthMiddleware
(secret string)
api/middleware/jwt_auth_middleware.go:12
↓ 1 callersFunctionNewClient
(connection string)
mongo/mongo.go:97
↓ 1 callersFunctionNewEnv
()
bootstrap/env.go:24
↓ 1 callersFunctionNewLoginRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/login_route.go:15
↓ 1 callersFunctionNewLoginUsecase
(userRepository domain.UserRepository, timeout time.Duration)
usecase/login_usecase.go:16
↓ 1 callersFunctionNewMongoDatabase
(env *Env)
bootstrap/database.go:12
↓ 1 callersFunctionNewProfileRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/profile_route.go:15
↓ 1 callersFunctionNewProfileUsecase
(userRepository domain.UserRepository, timeout time.Duration)
usecase/profile_usecase.go:15
↓ 1 callersFunctionNewRefreshTokenRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/refresh_token_route.go:15
↓ 1 callersFunctionNewRefreshTokenUsecase
(userRepository domain.UserRepository, timeout time.Duration)
usecase/refresh_token_usecase.go:16
↓ 1 callersFunctionNewSignupRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/signup_route.go:15
↓ 1 callersFunctionNewSignupUsecase
(userRepository domain.UserRepository, timeout time.Duration)
usecase/signup_usecase.go:16
↓ 1 callersFunctionNewTaskRepository
(db mongo.Database, collection string)
repository/task_repository.go:17
↓ 1 callersFunctionNewTaskRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/task_route.go:15
↓ 1 callersFunctionSetup
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, gin *gin.Engine)
api/route/route.go:12
↓ 1 callersMethodStartSession
()
mongo/mongo.go:49
↓ 1 callersMethodUpdateMany
(context.Context, interface{}, interface{}, ...*options.UpdateOptions)
mongo/mongo.go:31
↓ 1 callersMethodUpdateOne
(context.Context, interface{}, interface{}, ...*options.UpdateOptions)
mongo/mongo.go:30
↓ 1 callersMethodUseSession
(ctx context.Context, fn func(mongo.SessionContext) error)
mongo/mongo.go:50
MethodAggregate
(ctx context.Context, pipeline interface{})
mongo/mongo.go:171
MethodAggregate
Aggregate provides a mock function with given fields: _a0, _a1
mongo/mocks/Collection.go:22
MethodAll
(ctx context.Context, result interface{})
mongo/mongo.go:200
MethodAll
All provides a mock function with given fields: _a0, _a1
mongo/mocks/Cursor.go:17
MethodClient
()
mongo/mongo.go:137
MethodClient
Client provides a mock function with given fields:
mongo/mocks/Database.go:16
MethodClose
(ctx context.Context)
mongo/mongo.go:188
MethodClose
Close provides a mock function with given fields: _a0
mongo/mocks/Cursor.go:31
MethodCollection
(colName string)
mongo/mongo.go:132
MethodCollection
Collection provides a mock function with given fields: _a0
mongo/mocks/Database.go:32
MethodConnect
(ctx context.Context)
mongo/mongo.go:124
MethodConnect
Connect provides a mock function with given fields: _a0
mongo/mocks/Client.go:20
MethodCountDocuments
(ctx context.Context, filter interface{}, opts ...*options.CountOptions)
mongo/mongo.go:180
MethodCountDocuments
CountDocuments provides a mock function with given fields: _a0, _a1, _a2
mongo/mocks/Collection.go:45
MethodCreate
(c context.Context, task *domain.Task)
repository/task_repository.go:24
MethodCreate
(c context.Context, user *domain.User)
repository/user_repository.go:25
MethodCreate
(c context.Context, user *User)
domain/signup.go:19
MethodCreate
(c context.Context, task *Task)
domain/task.go:20
MethodCreate
Create provides a mock function with given fields: c, user
domain/mocks/UserRepository.go:18
MethodCreate
Create provides a mock function with given fields: c, user
domain/mocks/SignupUsecase.go:18
MethodCreate
Create provides a mock function with given fields: c, task
domain/mocks/TaskUsecase.go:18
MethodCreate
Create provides a mock function with given fields: c, task
domain/mocks/TaskRepository.go:18
MethodCreate
(c *gin.Context)
api/controller/task_controller.go:15
MethodCreate
(c context.Context, task *domain.Task)
usecase/task_usecase.go:22
MethodCreate
(c context.Context, user *domain.User)
usecase/signup_usecase.go:23
MethodCreateAccessToken
(user *User, secret string, expiry int)
domain/refresh_token.go:18
MethodCreateAccessToken
(user *User, secret string, expiry int)
domain/signup.go:21
MethodCreateAccessToken
CreateAccessToken provides a mock function with given fields: user, secret, expiry
domain/mocks/LoginUsecase.go:18
MethodCreateAccessToken
CreateAccessToken provides a mock function with given fields: user, secret, expiry
domain/mocks/SignupUsecase.go:32
MethodCreateAccessToken
CreateAccessToken provides a mock function with given fields: user, secret, expiry
domain/mocks/RefreshTokenUsecase.go:18
MethodCreateAccessToken
(user *domain.User, secret string, expiry int)
usecase/login_usecase.go:29
next →1–100 of 186, ranked by callers