Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AleksK1NG/Go-Clean-Architecture-REST-API
/ functions
Functions
480 in github.com/AleksK1NG/Go-Clean-Architecture-REST-API
⨍
Functions
480
◇
Types & classes
90
Method
GetNewsByID
GetNewsByID mocks base method
internal/news/mock/pg_repository_mock.go:70
Method
GetNewsByID
GetNewsByID indicates an expected call of GetNewsByID
internal/news/mock/pg_repository_mock.go:79
Method
GetNewsByID
GetNewsByID mocks base method
internal/news/mock/usecase_mock.go:70
Method
GetNewsByID
GetNewsByID indicates an expected call of GetNewsByID
internal/news/mock/usecase_mock.go:79
Method
GetNewsByID
Get news by id
internal/news/usecase/usecase.go:89
Method
GetNewsByIDCtx
Get new by id
internal/news/repository/redis_repository.go:27
Method
GetNewsByIDCtx
GetNewsByIDCtx mocks base method
internal/news/mock/redis_repository_mock.go:38
Method
GetNewsByIDCtx
GetNewsByIDCtx indicates an expected call of GetNewsByIDCtx
internal/news/mock/redis_repository_mock.go:47
Method
GetObject
Download file from AWS
internal/auth/repository/aws_repository.go:45
Method
GetObject
GetObject mocks base method
internal/auth/mock/aws_repository_mock.go:54
Method
GetObject
GetObject indicates an expected call of GetObject
internal/auth/mock/aws_repository_mock.go:63
Method
GetQueryString
()
pkg/utils/pagination.go:85
Method
GetSessionByID
(ctx context.Context, sessionID string)
internal/session/redis_repository.go:13
Method
GetSessionByID
Get session by id
internal/session/repository/redis_repository.go:54
Method
GetSessionByID
GetSessionByID mocks base method
internal/session/mock/redis_repository_mock.go:53
Method
GetSessionByID
GetSessionByID indicates an expected call of GetSessionByID
internal/session/mock/redis_repository_mock.go:62
Method
GetSessionByID
GetSessionByID mocks base method
internal/session/mock/usecase_mock.go:53
Method
GetSessionByID
GetSessionByID indicates an expected call of GetSessionByID
internal/session/mock/usecase_mock.go:62
Method
GetSessionByID
get session by id
internal/session/usecase/usecase.go:41
Function
GetUniqFileName
(userID string, fileExtension string)
pkg/utils/images.go:85
Method
GetUserByID
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
Method
GetUsers
(ctx context.Context, pq *utils.PaginationQuery)
internal/auth/pg_repository.go:21
Method
GetUsers
()
internal/auth/delivery.go:14
Method
GetUsers
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
Method
GetUsers
Get users with pagination
internal/auth/repository/pg_repository.go:142
Method
GetUsers
GetUsers mocks base method
internal/auth/mock/pg_repository_mock.go:129
Method
GetUsers
GetUsers indicates an expected call of GetUsers
internal/auth/mock/pg_repository_mock.go:138
Method
GetUsers
GetUsers mocks base method
internal/auth/mock/usecase_mock.go:129
Method
GetUsers
GetUsers indicates an expected call of GetUsers
internal/auth/mock/usecase_mock.go:138
Method
GetUsers
Get users with pagination
internal/auth/usecase/usecase.go:147
Method
IncHits
IncHits
pkg/metric/metric.go:75
Method
Info
(args ...interface{})
pkg/logger/zap_logger.go:106
Method
Infof
(template string, args ...interface{})
pkg/logger/zap_logger.go:110
Method
InitLogger
Init logger
pkg/logger/zap_logger.go:61
Function
LoadConfig
Load config file from given path
config/config.go:123
Method
Login
()
internal/auth/delivery.go:8
Method
Login
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
Method
Login
Login mocks base method
internal/auth/mock/usecase_mock.go:55
Method
Login
Login indicates an expected call of Login
internal/auth/mock/usecase_mock.go:64
Method
Login
Login user, returns user model with jwt token
internal/auth/usecase/usecase.go:155
Method
Logout
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
Function
MapAuthRoutes
Map auth routes
internal/auth/delivery/http/routes.go:11
Function
MapCommentsRoutes
Map comments routes
internal/comments/delivery/http/routes.go:11
Function
MapNewsRoutes
Map news routes
internal/news/delivery/http/routes.go:11
Function
NewAuthAWSRepository
Auth AWS S3 repository constructor
internal/auth/repository/aws_repository.go:22
Function
NewMiddlewareManager
Middleware manager constructor
internal/middleware/middlewares.go:20
Function
NewMockUCSession
NewMockUCSession creates a new mock instance
internal/session/mock/usecase_mock.go:26
Function
NewMockUseCase
NewMockUseCase creates a new mock instance
internal/auth/mock/usecase_mock.go:28
Function
NewNotFoundError
New Not Found Error
pkg/httpErrors/http_errors.go:111
Function
NewRestErrorFromBytes
New Rest Error From Bytes
pkg/httpErrors/http_errors.go:93
Method
ObserveResponseTime
Observer response time
pkg/metric/metric.go:81
Method
Panic
(args ...interface{})
pkg/logger/zap_logger.go:138
Method
Panicf
(template string, args ...interface{})
pkg/logger/zap_logger.go:142
Function
ParseConfig
Parse config file
config/config.go:140
Method
PutObject
Upload file to AWS
internal/auth/repository/aws_repository.go:27
Method
PutObject
PutObject mocks base method
internal/auth/mock/aws_repository_mock.go:39
Method
PutObject
PutObject indicates an expected call of PutObject
internal/auth/mock/aws_repository_mock.go:48
Method
ReadDoc
()
docs/docs.go:1088
Method
Register
(ctx context.Context, user *models.User)
internal/auth/pg_repository.go:15
Method
Register
()
internal/auth/delivery.go:7
Method
Register
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
Method
Register
Create new user
internal/auth/repository/pg_repository.go:28
Method
Register
Register mocks base method
internal/auth/mock/pg_repository_mock.go:40
Method
Register
Register indicates an expected call of Register
internal/auth/mock/pg_repository_mock.go:49
Method
Register
Register mocks base method
internal/auth/mock/usecase_mock.go:40
Method
Register
Register indicates an expected call of Register
internal/auth/mock/usecase_mock.go:49
Method
Register
Create new user
internal/auth/usecase/usecase.go:40
Method
RemoveObject
Delete file from AWS
internal/auth/repository/aws_repository.go:57
Method
RemoveObject
RemoveObject mocks base method
internal/auth/mock/aws_repository_mock.go:69
Method
RemoveObject
RemoveObject indicates an expected call of RemoveObject
internal/auth/mock/aws_repository_mock.go:77
Method
RequestLoggerMiddleware
Request logger middleware
internal/middleware/request_logger.go:12
Method
SearchByTitle
(ctx context.Context, title string, query *utils.PaginationQuery)
internal/news/pg_repository.go:20
Method
SearchByTitle
()
internal/news/delivery.go:12
Method
SearchByTitle
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
Method
SearchByTitle
Find news by title
internal/news/repository/pg_repository.go:153
Method
SearchByTitle
SearchByTitle mocks base method
internal/news/mock/pg_repository_mock.go:114
Method
SearchByTitle
SearchByTitle indicates an expected call of SearchByTitle
internal/news/mock/pg_repository_mock.go:123
Method
SearchByTitle
SearchByTitle mocks base method
internal/news/mock/usecase_mock.go:114
Method
SearchByTitle
SearchByTitle indicates an expected call of SearchByTitle
internal/news/mock/usecase_mock.go:123
Method
SearchByTitle
Find nes by title
internal/news/usecase/usecase.go:147
Method
SetNewsCtx
Cache news item
internal/news/repository/redis_repository.go:44
Method
SetNewsCtx
SetNewsCtx mocks base method
internal/news/mock/redis_repository_mock.go:53
Method
SetNewsCtx
SetNewsCtx indicates an expected call of SetNewsCtx
internal/news/mock/redis_repository_mock.go:61
Method
SetUserCtx
Cache user with duration in seconds
internal/auth/repository/redis_repository.go:43
Method
SetUserCtx
SetUserCtx mocks base method
internal/auth/mock/redis_repository_mock.go:53
Method
SetUserCtx
SetUserCtx indicates an expected call of SetUserCtx
internal/auth/mock/redis_repository_mock.go:61
Method
Status
Error status
pkg/httpErrors/http_errors.go:65
Function
TestAuthHandlers_Login
(t *testing.T)
internal/auth/delivery/http/handlers_test.go:90
Function
TestAuthHandlers_Logout
(t *testing.T)
internal/auth/delivery/http/handlers_test.go:162
Function
TestAuthHandlers_Register
(t *testing.T)
internal/auth/delivery/http/handlers_test.go:24
Function
TestAuthRedisRepo_DeleteUserCtx
(t *testing.T)
internal/auth/repository/redis_repository_test.go:74
Function
TestAuthRedisRepo_GetByIDCtx
(t *testing.T)
internal/auth/repository/redis_repository_test.go:30
Function
TestAuthRedisRepo_SetUserCtx
(t *testing.T)
internal/auth/repository/redis_repository_test.go:54
Function
TestAuthRepo_Delete
(t *testing.T)
internal/auth/repository/pg_repository_test.go:94
Function
TestAuthRepo_FindByEmail
(t *testing.T)
internal/auth/repository/pg_repository_test.go:168
Function
TestAuthRepo_FindByName
(t *testing.T)
internal/auth/repository/pg_repository_test.go:237
Function
TestAuthRepo_GetByID
(t *testing.T)
internal/auth/repository/pg_repository_test.go:57
Function
TestAuthRepo_GetUsers
(t *testing.T)
internal/auth/repository/pg_repository_test.go:203
Function
TestAuthRepo_Register
(t *testing.T)
internal/auth/repository/pg_repository_test.go:17
Function
TestAuthRepo_Update
(t *testing.T)
internal/auth/repository/pg_repository_test.go:128
← previous
next →
301–400 of 480, ranked by callers