MCPcopy Create free account

hub / github.com/avito-tech/internship_backend_2022 / functions

Functions166 in github.com/avito-tech/internship_backend_2022

FunctionNew
(url string, opts ...Option)
solution_example/account-management-service/pkg/postgres/postgres.go:42
FunctionNew
(handler http.Handler, opts ...Option)
solution_example/account-management-service/pkg/httpserver/server.go:22
FunctionNew
(apiJSONFilePath string)
solution_example/account-management-service/internal/webapi/gdrive/gdrive.go:21
FunctionNewAccountRepo
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/pgdb/account.go:20
FunctionNewConfig
(configPath string)
solution_example/account-management-service/config/config.go:53
FunctionNewCustomValidator
()
solution_example/account-management-service/pkg/validator/custom.go:33
FunctionNewOperationRepo
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/pgdb/operation.go:22
FunctionNewProductRepo
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/pgdb/product.go:14
FunctionNewRepositories
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/repo.go:51
FunctionNewReservationRepo
(pg *postgres.Postgres)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:16
FunctionNewRouter
(handler *echo.Echo, services *service.Services)
solution_example/account-management-service/internal/controller/http/v1/router.go:13
FunctionNewSHA1Hasher
(salt string)
solution_example/account-management-service/pkg/hasher/password.go:16
FunctionNewServices
(deps ServicesDependencies)
solution_example/account-management-service/internal/service/service.go:109
MethodOperationsPagination
(ctx context.Context, accountId int, sortType string, offset int, limit int)
solution_example/account-management-service/internal/repo/pgdb/operation.go:57
MethodParseToken
(accessToken string)
solution_example/account-management-service/internal/service/auth.go:84
MethodPing
(ctx context.Context)
solution_example/account-management-service/pkg/postgres/postgres.go:30
FunctionPort
(port string)
solution_example/account-management-service/pkg/httpserver/options.go:10
FunctionReadTimeout
(timeout time.Duration)
solution_example/account-management-service/pkg/httpserver/options.go:16
MethodRefundReservationById
(ctx context.Context, id int)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:121
MethodRefundReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/service/reservation.go:33
MethodRefundReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/service/service.go:66
MethodRefundReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:181
MethodRevenueReservationById
(ctx context.Context, id int)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:241
MethodRevenueReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/service/reservation.go:37
MethodRevenueReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/service/service.go:67
MethodRevenueReservationByOrderId
(ctx context.Context, orderId int)
solution_example/account-management-service/internal/repo/pgdb/reservation.go:290
FunctionRun
@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
MethodSendBatch
(ctx context.Context, b *pgx.Batch)
solution_example/account-management-service/pkg/postgres/postgres.go:26
FunctionShutdownTimeout
(timeout time.Duration)
solution_example/account-management-service/pkg/httpserver/options.go:28
FunctionTestAuthRoutes_SignIn
(t *testing.T)
solution_example/account-management-service/internal/controller/http/v1/auth_test.go:204
FunctionTestAuthRoutes_SignUp
(t *testing.T)
solution_example/account-management-service/internal/controller/http/v1/auth_test.go:18
FunctionTestOperationService_MakeReportFile
(t *testing.T)
solution_example/account-management-service/internal/service/operation_test.go:112
FunctionTestOperationService_MakeReportLink
(t *testing.T)
solution_example/account-management-service/internal/service/operation_test.go:190
FunctionTestOperationService_OperationHistory
(t *testing.T)
solution_example/account-management-service/internal/service/operation_test.go:15
FunctionTestUserRepo_CreateUser
(t *testing.T)
solution_example/account-management-service/internal/repo/pgdb/user_test.go:17
FunctionTestUserRepo_GetUserById
(t *testing.T)
solution_example/account-management-service/internal/repo/pgdb/user_test.go:213
FunctionTestUserRepo_GetUserByUsername
(t *testing.T)
solution_example/account-management-service/internal/repo/pgdb/user_test.go:306
FunctionTestUserRepo_GetUserByUsernameAndPassword
(t *testing.T)
solution_example/account-management-service/internal/repo/pgdb/user_test.go:116
MethodTransfer
(ctx context.Context, input AccountTransferInput)
solution_example/account-management-service/internal/service/account.go:42
MethodTransfer
(ctx context.Context, input AccountTransferInput)
solution_example/account-management-service/internal/service/service.go:49
MethodTransfer
(ctx context.Context, from, to, amount int)
solution_example/account-management-service/internal/repo/pgdb/account.go:161
MethodUploadCSVFile
(ctx context.Context, name string, data []byte)
solution_example/account-management-service/internal/webapi/gdrive/gdrive.go:41
MethodUserIdentity
(next echo.HandlerFunc)
solution_example/account-management-service/internal/controller/http/v1/middleware.go:19
MethodWithdraw
(ctx context.Context, input AccountWithdrawInput)
solution_example/account-management-service/internal/service/account.go:38
MethodWithdraw
(ctx context.Context, input AccountWithdrawInput)
solution_example/account-management-service/internal/service/service.go:48
MethodWithdraw
(ctx context.Context, id, amount int)
solution_example/account-management-service/internal/repo/pgdb/account.go:107
FunctionWriteTimeout
(timeout time.Duration)
solution_example/account-management-service/pkg/httpserver/options.go:22
Methodcreate
@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
Methodcreate
@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
Methodcreate
@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
Methoddeposit
@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
MethodgetBalance
@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
MethodgetById
@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
MethodgetHistory
@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
MethodgetReportFile
@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
MethodgetReportLink
@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
Functioninit
()
solution_example/account-management-service/internal/app/migrate.go:22
Functioninit
()
solution_example/account-management-service/docs/docs.go:1164
Functionmain
()
solution_example/account-management-service/cmd/app/main.go:9
MethodpasswordValidate
(fl validator.FieldLevel)
solution_example/account-management-service/pkg/validator/custom.go:80
Methodrefund
@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
Methodrevenue
@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
MethodsignIn
@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
MethodsignUp
@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
Methodtransfer
@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
Methodwithdraw
@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
← previous101–166 of 166, ranked by callers