Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amitshekhariitbhu/go-backend-clean-architecture
/ functions
Functions
186 in github.com/amitshekhariitbhu/go-backend-clean-architecture
⨍
Functions
186
◇
Types & classes
70
↓ 7 callers
Method
Collection
(string)
mongo/mongo.go:18
↓ 6 callers
Function
NewUserRepository
(db mongo.Database, collection string)
repository/user_repository.go:18
↓ 4 callers
Method
Create
(c context.Context, task *Task)
domain/task.go:25
↓ 4 callers
Method
Decode
(interface{})
mongo/mongo.go:41
↓ 4 callers
Method
FetchByUserID
(c context.Context, userID string)
domain/task.go:26
↓ 4 callers
Method
Find
(context.Context, interface{}, ...*options.FindOptions)
mongo/mongo.go:27
↓ 3 callers
Method
All
(context.Context, interface{})
mongo/mongo.go:42
↓ 3 callers
Function
CreateAccessToken
(user *domain.User, secret string, expiry int)
internal/tokenutil/tokenutil.go:11
↓ 3 callers
Method
CreateAccessToken
(user *User, secret string, expiry int)
domain/login.go:19
↓ 3 callers
Function
CreateRefreshToken
(user *domain.User, secret string, expiry int)
internal/tokenutil/tokenutil.go:28
↓ 3 callers
Method
CreateRefreshToken
(user *User, secret string, expiry int)
domain/login.go:20
↓ 3 callers
Method
FindOne
(context.Context, interface{})
mongo/mongo.go:23
↓ 3 callers
Method
InsertOne
(context.Context, interface{})
mongo/mongo.go:24
↓ 3 callers
Function
NewTaskUsecase
(taskRepository domain.TaskRepository, timeout time.Duration)
usecase/task_usecase.go:15
↓ 3 callers
Method
Next
(context.Context)
mongo/mongo.go:40
↓ 2 callers
Method
Client
()
mongo/mongo.go:19
↓ 2 callers
Method
Connect
(context.Context)
mongo/mongo.go:47
↓ 2 callers
Method
Create
(c context.Context, user *User)
domain/user.go:21
↓ 2 callers
Method
Database
(string)
mongo/mongo.go:46
↓ 2 callers
Method
Disconnect
(context.Context)
mongo/mongo.go:48
↓ 2 callers
Function
ExtractIDFromToken
(requestToken string, secret string)
internal/tokenutil/tokenutil.go:56
↓ 2 callers
Method
GetByEmail
(c context.Context, email string)
domain/user.go:23
↓ 2 callers
Method
GetByID
(c context.Context, id string)
domain/user.go:24
↓ 2 callers
Method
GetUserByEmail
(c context.Context, email string)
domain/login.go:18
↓ 2 callers
Method
Ping
(context.Context)
mongo/mongo.go:51
↓ 2 callers
Function
setUserID
(userID string)
api/controller/profile_controller_test.go:19
↓ 1 callers
Method
Aggregate
(context.Context, interface{})
mongo/mongo.go:29
↓ 1 callers
Function
App
()
bootstrap/app.go:10
↓ 1 callers
Method
Cleanup
(func())
mongo/mocks/Cursor.go:74
↓ 1 callers
Method
Cleanup
(func())
mongo/mocks/Client.go:116
↓ 1 callers
Method
Cleanup
(func())
mongo/mocks/Collection.go:247
↓ 1 callers
Method
Cleanup
(func())
mongo/mocks/Database.go:49
↓ 1 callers
Method
Cleanup
(func())
mongo/mocks/SingleResult.go:28
↓ 1 callers
Method
Cleanup
(func())
domain/mocks/UserRepository.go:98
↓ 1 callers
Method
Cleanup
(func())
domain/mocks/LoginUsecase.go:82
↓ 1 callers
Method
Cleanup
(func())
domain/mocks/SignupUsecase.go:96
↓ 1 callers
Method
Cleanup
(func())
domain/mocks/TaskUsecase.go:56
↓ 1 callers
Method
Cleanup
(func())
domain/mocks/TaskRepository.go:56
↓ 1 callers
Method
Cleanup
(func())
domain/mocks/RefreshTokenUsecase.go:103
↓ 1 callers
Method
Cleanup
(func())
domain/mocks/ProfileUsecase.go:42
↓ 1 callers
Method
Close
(context.Context)
mongo/mongo.go:39
↓ 1 callers
Method
CloseDBConnection
()
bootstrap/app.go:17
↓ 1 callers
Function
CloseMongoDBConnection
(client mongo.Client)
bootstrap/database.go:45
↓ 1 callers
Method
CountDocuments
(context.Context, interface{}, ...*options.CountOptions)
mongo/mongo.go:28
↓ 1 callers
Method
DeleteOne
(context.Context, interface{})
mongo/mongo.go:26
↓ 1 callers
Method
ExtractIDFromToken
(requestToken string, secret string)
domain/refresh_token.go:20
↓ 1 callers
Method
GetProfileByID
(c context.Context, userID string)
domain/profile.go:11
↓ 1 callers
Method
GetUserByID
(c context.Context, id string)
domain/refresh_token.go:17
↓ 1 callers
Method
InsertMany
(context.Context, []interface{})
mongo/mongo.go:25
↓ 1 callers
Function
IsAuthorized
(requestToken string, secret string)
internal/tokenutil/tokenutil.go:43
↓ 1 callers
Function
JwtAuthMiddleware
(secret string)
api/middleware/jwt_auth_middleware.go:12
↓ 1 callers
Function
NewClient
(connection string)
mongo/mongo.go:97
↓ 1 callers
Function
NewEnv
()
bootstrap/env.go:24
↓ 1 callers
Function
NewLoginRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/login_route.go:15
↓ 1 callers
Function
NewLoginUsecase
(userRepository domain.UserRepository, timeout time.Duration)
usecase/login_usecase.go:16
↓ 1 callers
Function
NewMongoDatabase
(env *Env)
bootstrap/database.go:12
↓ 1 callers
Function
NewProfileRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/profile_route.go:15
↓ 1 callers
Function
NewProfileUsecase
(userRepository domain.UserRepository, timeout time.Duration)
usecase/profile_usecase.go:15
↓ 1 callers
Function
NewRefreshTokenRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/refresh_token_route.go:15
↓ 1 callers
Function
NewRefreshTokenUsecase
(userRepository domain.UserRepository, timeout time.Duration)
usecase/refresh_token_usecase.go:16
↓ 1 callers
Function
NewSignupRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/signup_route.go:15
↓ 1 callers
Function
NewSignupUsecase
(userRepository domain.UserRepository, timeout time.Duration)
usecase/signup_usecase.go:16
↓ 1 callers
Function
NewTaskRepository
(db mongo.Database, collection string)
repository/task_repository.go:17
↓ 1 callers
Function
NewTaskRouter
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, group *gin.RouterGroup)
api/route/task_route.go:15
↓ 1 callers
Function
Setup
(env *bootstrap.Env, timeout time.Duration, db mongo.Database, gin *gin.Engine)
api/route/route.go:12
↓ 1 callers
Method
StartSession
()
mongo/mongo.go:49
↓ 1 callers
Method
UpdateMany
(context.Context, interface{}, interface{}, ...*options.UpdateOptions)
mongo/mongo.go:31
↓ 1 callers
Method
UpdateOne
(context.Context, interface{}, interface{}, ...*options.UpdateOptions)
mongo/mongo.go:30
↓ 1 callers
Method
UseSession
(ctx context.Context, fn func(mongo.SessionContext) error)
mongo/mongo.go:50
Method
Aggregate
(ctx context.Context, pipeline interface{})
mongo/mongo.go:171
Method
Aggregate
Aggregate provides a mock function with given fields: _a0, _a1
mongo/mocks/Collection.go:22
Method
All
(ctx context.Context, result interface{})
mongo/mongo.go:200
Method
All
All provides a mock function with given fields: _a0, _a1
mongo/mocks/Cursor.go:17
Method
Client
()
mongo/mongo.go:137
Method
Client
Client provides a mock function with given fields:
mongo/mocks/Database.go:16
Method
Close
(ctx context.Context)
mongo/mongo.go:188
Method
Close
Close provides a mock function with given fields: _a0
mongo/mocks/Cursor.go:31
Method
Collection
(colName string)
mongo/mongo.go:132
Method
Collection
Collection provides a mock function with given fields: _a0
mongo/mocks/Database.go:32
Method
Connect
(ctx context.Context)
mongo/mongo.go:124
Method
Connect
Connect provides a mock function with given fields: _a0
mongo/mocks/Client.go:20
Method
CountDocuments
(ctx context.Context, filter interface{}, opts ...*options.CountOptions)
mongo/mongo.go:180
Method
CountDocuments
CountDocuments provides a mock function with given fields: _a0, _a1, _a2
mongo/mocks/Collection.go:45
Method
Create
(c context.Context, task *domain.Task)
repository/task_repository.go:24
Method
Create
(c context.Context, user *domain.User)
repository/user_repository.go:25
Method
Create
(c context.Context, user *User)
domain/signup.go:19
Method
Create
(c context.Context, task *Task)
domain/task.go:20
Method
Create
Create provides a mock function with given fields: c, user
domain/mocks/UserRepository.go:18
Method
Create
Create provides a mock function with given fields: c, user
domain/mocks/SignupUsecase.go:18
Method
Create
Create provides a mock function with given fields: c, task
domain/mocks/TaskUsecase.go:18
Method
Create
Create provides a mock function with given fields: c, task
domain/mocks/TaskRepository.go:18
Method
Create
(c *gin.Context)
api/controller/task_controller.go:15
Method
Create
(c context.Context, task *domain.Task)
usecase/task_usecase.go:22
Method
Create
(c context.Context, user *domain.User)
usecase/signup_usecase.go:23
Method
CreateAccessToken
(user *User, secret string, expiry int)
domain/refresh_token.go:18
Method
CreateAccessToken
(user *User, secret string, expiry int)
domain/signup.go:21
Method
CreateAccessToken
CreateAccessToken provides a mock function with given fields: user, secret, expiry
domain/mocks/LoginUsecase.go:18
Method
CreateAccessToken
CreateAccessToken provides a mock function with given fields: user, secret, expiry
domain/mocks/SignupUsecase.go:32
Method
CreateAccessToken
CreateAccessToken provides a mock function with given fields: user, secret, expiry
domain/mocks/RefreshTokenUsecase.go:18
Method
CreateAccessToken
(user *domain.User, secret string, expiry int)
usecase/login_usecase.go:29
next →
1–100 of 186, ranked by callers