Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/avito-tech/internship_backend_2022
/ functions
Functions
166 in github.com/avito-tech/internship_backend_2022
⨍
Functions
166
◇
Types & classes
86
Function
New
(url string, opts ...Option)
solution_example/account-management-service/pkg/postgres/postgres.go:42
Function
New
(handler http.Handler, opts ...Option)
solution_example/account-management-service/pkg/httpserver/server.go:22
Function
New
(apiJSONFilePath string)
solution_example/account-management-service/internal/webapi/gdrive/gdrive.go:21
Function
NewAccountRepo
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/pgdb/account.go:20
Function
NewConfig
(configPath string)
solution_example/account-management-service/config/config.go:53
Function
NewCustomValidator
()
solution_example/account-management-service/pkg/validator/custom.go:33
Function
NewOperationRepo
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/pgdb/operation.go:22
Function
NewProductRepo
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/pgdb/product.go:14
Function
NewRepositories
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/repo.go:51
Function
NewReservationRepo
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:16
Function
NewRouter
(handler *echo.Echo, services *service.Services)
solution_example/account-management-service/internal/controller/http/v1/router.go:13
Function
NewSHA1Hasher
(salt string)
solution_example/account-management-service/pkg/hasher/password.go:16
Function
NewServices
(deps ServicesDependencies)
solution_example/account-management-service/internal/service/service.go:109
Method
OperationsPagination
(ctx context.Context, accountId int, sortType string, offset int, limit int)
solution_example/account-management-service/internal/repo/pgdb/operation.go:57
Method
ParseToken
(accessToken string)
solution_example/account-management-service/internal/service/auth.go:84
Method
Ping
(ctx context.Context)
solution_example/account-management-service/pkg/postgres/postgres.go:30
Function
Port
(port string)
solution_example/account-management-service/pkg/httpserver/options.go:10
Function
ReadTimeout
(timeout time.Duration)
solution_example/account-management-service/pkg/httpserver/options.go:16
Method
RefundReservationById
(ctx context.Context, id int)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:121
Method
RefundReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/service/reservation.go:33
Method
RefundReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/service/service.go:66
Method
RefundReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:181
Method
RevenueReservationById
(ctx context.Context, id int)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:241
Method
RevenueReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/service/reservation.go:37
Method
RevenueReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/service/service.go:67
Method
RevenueReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:290
Function
Run
@title Account Management Service @version 1.0 @description This is a service for managing accounts, reservations, products and
solution_example/account-management-service/internal/app/app.go:36
Method
SendBatch
(ctx context.Context, b *pgx.Batch)
solution_example/account-management-service/pkg/postgres/postgres.go:26
Function
ShutdownTimeout
(timeout time.Duration)
solution_example/account-management-service/pkg/httpserver/options.go:28
Function
TestAuthRoutes_SignIn
(t *testing.T)
solution_example/account-management-service/internal/controller/http/v1/auth_test.go:204
Function
TestAuthRoutes_SignUp
(t *testing.T)
solution_example/account-management-service/internal/controller/http/v1/auth_test.go:18
Function
TestOperationService_MakeReportFile
(t *testing.T)
solution_example/account-management-service/internal/service/operation_test.go:112
Function
TestOperationService_MakeReportLink
(t *testing.T)
solution_example/account-management-service/internal/service/operation_test.go:190
Function
TestOperationService_OperationHistory
(t *testing.T)
solution_example/account-management-service/internal/service/operation_test.go:15
Function
TestUserRepo_CreateUser
(t *testing.T)
solution_example/account-management-service/internal/repo/pgdb/user_test.go:17
Function
TestUserRepo_GetUserById
(t *testing.T)
solution_example/account-management-service/internal/repo/pgdb/user_test.go:213
Function
TestUserRepo_GetUserByUsername
(t *testing.T)
solution_example/account-management-service/internal/repo/pgdb/user_test.go:306
Function
TestUserRepo_GetUserByUsernameAndPassword
(t *testing.T)
solution_example/account-management-service/internal/repo/pgdb/user_test.go:116
Method
Transfer
(ctx context.Context, input AccountTransferInput)
solution_example/account-management-service/internal/service/account.go:42
Method
Transfer
(ctx context.Context, input AccountTransferInput)
solution_example/account-management-service/internal/service/service.go:49
Method
Transfer
(ctx context.Context, from, to, amount int)
solution_example/account-management-service/internal/repo/pgdb/account.go:161
Method
UploadCSVFile
(ctx context.Context, name string, data []byte)
solution_example/account-management-service/internal/webapi/gdrive/gdrive.go:41
Method
UserIdentity
(next echo.HandlerFunc)
solution_example/account-management-service/internal/controller/http/v1/middleware.go:19
Method
Withdraw
(ctx context.Context, input AccountWithdrawInput)
solution_example/account-management-service/internal/service/account.go:38
Method
Withdraw
(ctx context.Context, input AccountWithdrawInput)
solution_example/account-management-service/internal/service/service.go:48
Method
Withdraw
(ctx context.Context, id, amount int)
solution_example/account-management-service/internal/repo/pgdb/account.go:107
Function
WriteTimeout
(timeout time.Duration)
solution_example/account-management-service/pkg/httpserver/options.go:22
Method
create
@Summary Create reservation @Description Create reservation @Tags reservations @Accept json @Produce json @Param input body reservationCreateInput tru
solution_example/account-management-service/internal/controller/http/v1/reservation.go:41
Method
create
@Summary Create account @Description Create account @Tags accounts @Accept json @Produce json @Success 201 {object} v1.accountRoutes.create.response @
solution_example/account-management-service/internal/controller/http/v1/account.go:35
Method
create
@Summary Create product @Description Create product @Tags products @Accept json @Produce json @Success 201 {object} v1.productRoutes.create.response @
solution_example/account-management-service/internal/controller/http/v1/product.go:39
Method
deposit
@Summary Deposit @Description Deposit @Tags accounts @Accept json @Produce json @Param input body v1.accountDepositInput true "input" @Success 200 @Fa
solution_example/account-management-service/internal/controller/http/v1/account.go:71
Method
getBalance
@Summary Get balance @Description Get balance @Tags accounts @Accept json @Produce json @Param input body v1.getBalanceInput true "input" @Success 200
solution_example/account-management-service/internal/controller/http/v1/account.go:213
Method
getById
@Summary Get product by id @Description Get product by id @Tags products @Accept json @Produce json @Success 200 {object} v1.productRoutes.getById.res
solution_example/account-management-service/internal/controller/http/v1/product.go:81
Method
getHistory
@Summary Get history @Description Get history of operations @Tags operations @Accept json @Produce json @Param input body getHistoryInput true "input"
solution_example/account-management-service/internal/controller/http/v1/operation.go:44
Method
getReportFile
@Summary Get report file @Description Get report file @Tags operations @Accept json @Produce text/csv @Param input body getReportInput true "input" @S
solution_example/account-management-service/internal/controller/http/v1/operation.go:134
Method
getReportLink
@Summary Get report link @Description Get link to report @Tags operations @Accept json @Produce json @Param input body getReportInput true "input" @Su
solution_example/account-management-service/internal/controller/http/v1/operation.go:94
Function
init
()
solution_example/account-management-service/internal/app/migrate.go:22
Function
init
()
solution_example/account-management-service/docs/docs.go:1164
Function
main
()
solution_example/account-management-service/cmd/app/main.go:9
Method
passwordValidate
(fl validator.FieldLevel)
solution_example/account-management-service/pkg/validator/custom.go:80
Method
refund
@Summary Refund reservation @Description Refund reservation @Tags reservations @Accept json @Produce json @Param input body reservationRefundInput tru
solution_example/account-management-service/internal/controller/http/v1/reservation.go:135
Method
revenue
@Summary Revenue reservation @Description Revenue reservation @Tags reservations @Accept json @Produce json @Param input body reservationRevenueInput
solution_example/account-management-service/internal/controller/http/v1/reservation.go:96
Method
signIn
@Summary Sign in @Description Sign in @Tags auth @Accept json @Produce json @Param input body signInInput true "input" @Success 200 {object} v1.authRo
solution_example/account-management-service/internal/controller/http/v1/auth.go:87
Method
signUp
@Summary Sign up @Description Sign up @Tags auth @Accept json @Produce json @Param input body signUpInput true "input" @Success 201 {object} v1.authRo
solution_example/account-management-service/internal/controller/http/v1/auth.go:37
Method
transfer
@Summary Transfer @Description Transfer @Tags accounts @Accept json @Produce json @Param input body v1.accountTransferInput true "input" @Success 200
solution_example/account-management-service/internal/controller/http/v1/account.go:166
Method
withdraw
@Summary Withdraw @Description Withdraw @Tags accounts @Accept json @Produce json @Param input body v1.accountWithdrawInput true "input" @Success 200
solution_example/account-management-service/internal/controller/http/v1/account.go:118
← previous
101–166 of 166, ranked by callers