MCPcopy Create free account

hub / github.com/AleksK1NG/Go-Clean-Architecture-REST-API / functions

Functions480 in github.com/AleksK1NG/Go-Clean-Architecture-REST-API

MethodGetNewsByID
GetNewsByID mocks base method
internal/news/mock/pg_repository_mock.go:70
MethodGetNewsByID
GetNewsByID indicates an expected call of GetNewsByID
internal/news/mock/pg_repository_mock.go:79
MethodGetNewsByID
GetNewsByID mocks base method
internal/news/mock/usecase_mock.go:70
MethodGetNewsByID
GetNewsByID indicates an expected call of GetNewsByID
internal/news/mock/usecase_mock.go:79
MethodGetNewsByID
Get news by id
internal/news/usecase/usecase.go:89
MethodGetNewsByIDCtx
Get new by id
internal/news/repository/redis_repository.go:27
MethodGetNewsByIDCtx
GetNewsByIDCtx mocks base method
internal/news/mock/redis_repository_mock.go:38
MethodGetNewsByIDCtx
GetNewsByIDCtx indicates an expected call of GetNewsByIDCtx
internal/news/mock/redis_repository_mock.go:47
MethodGetObject
Download file from AWS
internal/auth/repository/aws_repository.go:45
MethodGetObject
GetObject mocks base method
internal/auth/mock/aws_repository_mock.go:54
MethodGetObject
GetObject indicates an expected call of GetObject
internal/auth/mock/aws_repository_mock.go:63
MethodGetQueryString
()
pkg/utils/pagination.go:85
MethodGetSessionByID
(ctx context.Context, sessionID string)
internal/session/redis_repository.go:13
MethodGetSessionByID
Get session by id
internal/session/repository/redis_repository.go:54
MethodGetSessionByID
GetSessionByID mocks base method
internal/session/mock/redis_repository_mock.go:53
MethodGetSessionByID
GetSessionByID indicates an expected call of GetSessionByID
internal/session/mock/redis_repository_mock.go:62
MethodGetSessionByID
GetSessionByID mocks base method
internal/session/mock/usecase_mock.go:53
MethodGetSessionByID
GetSessionByID indicates an expected call of GetSessionByID
internal/session/mock/usecase_mock.go:62
MethodGetSessionByID
get session by id
internal/session/usecase/usecase.go:41
FunctionGetUniqFileName
(userID string, fileExtension string)
pkg/utils/images.go:85
MethodGetUserByID
GetUserByID godoc @Summary get user by id @Description get string by ID @Tags Auth @Accept json @Produce json @Param id path int true "user_id" @Suc
internal/auth/delivery/http/handlers.go:203
MethodGetUsers
(ctx context.Context, pq *utils.PaginationQuery)
internal/auth/pg_repository.go:21
MethodGetUsers
()
internal/auth/delivery.go:14
MethodGetUsers
GetUsers godoc @Summary Get users @Description Get the list of all users @Tags Auth @Accept json @Param page query int false "page number" Format(page
internal/auth/delivery/http/handlers.go:302
MethodGetUsers
Get users with pagination
internal/auth/repository/pg_repository.go:142
MethodGetUsers
GetUsers mocks base method
internal/auth/mock/pg_repository_mock.go:129
MethodGetUsers
GetUsers indicates an expected call of GetUsers
internal/auth/mock/pg_repository_mock.go:138
MethodGetUsers
GetUsers mocks base method
internal/auth/mock/usecase_mock.go:129
MethodGetUsers
GetUsers indicates an expected call of GetUsers
internal/auth/mock/usecase_mock.go:138
MethodGetUsers
Get users with pagination
internal/auth/usecase/usecase.go:147
MethodIncHits
IncHits
pkg/metric/metric.go:75
MethodInfo
(args ...interface{})
pkg/logger/zap_logger.go:106
MethodInfof
(template string, args ...interface{})
pkg/logger/zap_logger.go:110
MethodInitLogger
Init logger
pkg/logger/zap_logger.go:61
FunctionLoadConfig
Load config file from given path
config/config.go:123
MethodLogin
()
internal/auth/delivery.go:8
MethodLogin
Login godoc @Summary Login new user @Description login user, returns user and set session @Tags Auth @Accept json @Produce json @Success 200 {object}
internal/auth/delivery/http/handlers.go:83
MethodLogin
Login mocks base method
internal/auth/mock/usecase_mock.go:55
MethodLogin
Login indicates an expected call of Login
internal/auth/mock/usecase_mock.go:64
MethodLogin
Login user, returns user model with jwt token
internal/auth/usecase/usecase.go:155
MethodLogout
Logout godoc @Summary Logout user @Description logout user removing session @Tags Auth @Accept json @Produce json @Success 200 {string} string "ok"
internal/auth/delivery/http/handlers.go:129
FunctionMapAuthRoutes
Map auth routes
internal/auth/delivery/http/routes.go:11
FunctionMapCommentsRoutes
Map comments routes
internal/comments/delivery/http/routes.go:11
FunctionMapNewsRoutes
Map news routes
internal/news/delivery/http/routes.go:11
FunctionNewAuthAWSRepository
Auth AWS S3 repository constructor
internal/auth/repository/aws_repository.go:22
FunctionNewMiddlewareManager
Middleware manager constructor
internal/middleware/middlewares.go:20
FunctionNewMockUCSession
NewMockUCSession creates a new mock instance
internal/session/mock/usecase_mock.go:26
FunctionNewMockUseCase
NewMockUseCase creates a new mock instance
internal/auth/mock/usecase_mock.go:28
FunctionNewNotFoundError
New Not Found Error
pkg/httpErrors/http_errors.go:111
FunctionNewRestErrorFromBytes
New Rest Error From Bytes
pkg/httpErrors/http_errors.go:93
MethodObserveResponseTime
Observer response time
pkg/metric/metric.go:81
MethodPanic
(args ...interface{})
pkg/logger/zap_logger.go:138
MethodPanicf
(template string, args ...interface{})
pkg/logger/zap_logger.go:142
FunctionParseConfig
Parse config file
config/config.go:140
MethodPutObject
Upload file to AWS
internal/auth/repository/aws_repository.go:27
MethodPutObject
PutObject mocks base method
internal/auth/mock/aws_repository_mock.go:39
MethodPutObject
PutObject indicates an expected call of PutObject
internal/auth/mock/aws_repository_mock.go:48
MethodReadDoc
()
docs/docs.go:1088
MethodRegister
(ctx context.Context, user *models.User)
internal/auth/pg_repository.go:15
MethodRegister
()
internal/auth/delivery.go:7
MethodRegister
Register godoc @Summary Register new user @Description register new user, returns user and token @Tags Auth @Accept json @Produce json @Success 201 {o
internal/auth/delivery/http/handlers.go:44
MethodRegister
Create new user
internal/auth/repository/pg_repository.go:28
MethodRegister
Register mocks base method
internal/auth/mock/pg_repository_mock.go:40
MethodRegister
Register indicates an expected call of Register
internal/auth/mock/pg_repository_mock.go:49
MethodRegister
Register mocks base method
internal/auth/mock/usecase_mock.go:40
MethodRegister
Register indicates an expected call of Register
internal/auth/mock/usecase_mock.go:49
MethodRegister
Create new user
internal/auth/usecase/usecase.go:40
MethodRemoveObject
Delete file from AWS
internal/auth/repository/aws_repository.go:57
MethodRemoveObject
RemoveObject mocks base method
internal/auth/mock/aws_repository_mock.go:69
MethodRemoveObject
RemoveObject indicates an expected call of RemoveObject
internal/auth/mock/aws_repository_mock.go:77
MethodRequestLoggerMiddleware
Request logger middleware
internal/middleware/request_logger.go:12
MethodSearchByTitle
(ctx context.Context, title string, query *utils.PaginationQuery)
internal/news/pg_repository.go:20
MethodSearchByTitle
()
internal/news/delivery.go:12
MethodSearchByTitle
SearchByTitle godoc @Summary Search by title @Description Search news by title @Tags News @Accept json @Produce json @Param page query int false "page
internal/news/delivery/http/handlers.go:198
MethodSearchByTitle
Find news by title
internal/news/repository/pg_repository.go:153
MethodSearchByTitle
SearchByTitle mocks base method
internal/news/mock/pg_repository_mock.go:114
MethodSearchByTitle
SearchByTitle indicates an expected call of SearchByTitle
internal/news/mock/pg_repository_mock.go:123
MethodSearchByTitle
SearchByTitle mocks base method
internal/news/mock/usecase_mock.go:114
MethodSearchByTitle
SearchByTitle indicates an expected call of SearchByTitle
internal/news/mock/usecase_mock.go:123
MethodSearchByTitle
Find nes by title
internal/news/usecase/usecase.go:147
MethodSetNewsCtx
Cache news item
internal/news/repository/redis_repository.go:44
MethodSetNewsCtx
SetNewsCtx mocks base method
internal/news/mock/redis_repository_mock.go:53
MethodSetNewsCtx
SetNewsCtx indicates an expected call of SetNewsCtx
internal/news/mock/redis_repository_mock.go:61
MethodSetUserCtx
Cache user with duration in seconds
internal/auth/repository/redis_repository.go:43
MethodSetUserCtx
SetUserCtx mocks base method
internal/auth/mock/redis_repository_mock.go:53
MethodSetUserCtx
SetUserCtx indicates an expected call of SetUserCtx
internal/auth/mock/redis_repository_mock.go:61
MethodStatus
Error status
pkg/httpErrors/http_errors.go:65
FunctionTestAuthHandlers_Login
(t *testing.T)
internal/auth/delivery/http/handlers_test.go:90
FunctionTestAuthHandlers_Logout
(t *testing.T)
internal/auth/delivery/http/handlers_test.go:162
FunctionTestAuthHandlers_Register
(t *testing.T)
internal/auth/delivery/http/handlers_test.go:24
FunctionTestAuthRedisRepo_DeleteUserCtx
(t *testing.T)
internal/auth/repository/redis_repository_test.go:74
FunctionTestAuthRedisRepo_GetByIDCtx
(t *testing.T)
internal/auth/repository/redis_repository_test.go:30
FunctionTestAuthRedisRepo_SetUserCtx
(t *testing.T)
internal/auth/repository/redis_repository_test.go:54
FunctionTestAuthRepo_Delete
(t *testing.T)
internal/auth/repository/pg_repository_test.go:94
FunctionTestAuthRepo_FindByEmail
(t *testing.T)
internal/auth/repository/pg_repository_test.go:168
FunctionTestAuthRepo_FindByName
(t *testing.T)
internal/auth/repository/pg_repository_test.go:237
FunctionTestAuthRepo_GetByID
(t *testing.T)
internal/auth/repository/pg_repository_test.go:57
FunctionTestAuthRepo_GetUsers
(t *testing.T)
internal/auth/repository/pg_repository_test.go:203
FunctionTestAuthRepo_Register
(t *testing.T)
internal/auth/repository/pg_repository_test.go:17
FunctionTestAuthRepo_Update
(t *testing.T)
internal/auth/repository/pg_repository_test.go:128
← previousnext →301–400 of 480, ranked by callers