├── .gitignore ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── cmd └── app │ └── main.go ├── config ├── config.go └── config.yml ├── docker-compose.yml ├── docs ├── docs.go ├── swagger.json └── swagger.yaml ├── go.mod ├── go.sum ├── init └── init.sql ├── integration-test ├── Dockerfile └── integration_test.go ├── internal ├── app │ └── app.go ├── controller │ └── http │ │ └── v1 │ │ ├── account.go │ │ ├── error.go │ │ └── router.go ├── entity │ ├── account.go │ └── transaction.go └── usecase │ ├── account.go │ ├── account_test.go │ ├── error.go │ ├── interface.go │ ├── mocks_test.go │ └── repo │ ├── account_postgres.go │ └── error.go └── pkg ├── logger └── logger.go └── postgres ├── options.go └── postgres.go /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/README.md -------------------------------------------------------------------------------- /cmd/app/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/cmd/app/main.go -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/config/config.go -------------------------------------------------------------------------------- /config/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/config/config.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/docs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/docs/docs.go -------------------------------------------------------------------------------- /docs/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/docs/swagger.json -------------------------------------------------------------------------------- /docs/swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/docs/swagger.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/go.sum -------------------------------------------------------------------------------- /init/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/init/init.sql -------------------------------------------------------------------------------- /integration-test/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/integration-test/Dockerfile -------------------------------------------------------------------------------- /integration-test/integration_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/integration-test/integration_test.go -------------------------------------------------------------------------------- /internal/app/app.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/app/app.go -------------------------------------------------------------------------------- /internal/controller/http/v1/account.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/controller/http/v1/account.go -------------------------------------------------------------------------------- /internal/controller/http/v1/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/controller/http/v1/error.go -------------------------------------------------------------------------------- /internal/controller/http/v1/router.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/controller/http/v1/router.go -------------------------------------------------------------------------------- /internal/entity/account.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/entity/account.go -------------------------------------------------------------------------------- /internal/entity/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/entity/transaction.go -------------------------------------------------------------------------------- /internal/usecase/account.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/usecase/account.go -------------------------------------------------------------------------------- /internal/usecase/account_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/usecase/account_test.go -------------------------------------------------------------------------------- /internal/usecase/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/usecase/error.go -------------------------------------------------------------------------------- /internal/usecase/interface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/usecase/interface.go -------------------------------------------------------------------------------- /internal/usecase/mocks_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/usecase/mocks_test.go -------------------------------------------------------------------------------- /internal/usecase/repo/account_postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/usecase/repo/account_postgres.go -------------------------------------------------------------------------------- /internal/usecase/repo/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/internal/usecase/repo/error.go -------------------------------------------------------------------------------- /pkg/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/pkg/logger/logger.go -------------------------------------------------------------------------------- /pkg/postgres/options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/pkg/postgres/options.go -------------------------------------------------------------------------------- /pkg/postgres/postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vprud/avito-test-work/HEAD/pkg/postgres/postgres.go --------------------------------------------------------------------------------