├── .github ├── dependabot.yml └── workflows │ └── main.yaml ├── .gitignore ├── .golangci.yml ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── drivers ├── goredis8 │ ├── context.go │ ├── example_test.go │ ├── factory.go │ ├── go.mod │ ├── go.sum │ ├── goroutine_leak_test.go │ ├── option.go │ ├── readonly_func_without_tx.go │ ├── readonly_func_without_tx_test.go │ ├── settings.go │ ├── transaction.go │ ├── transaction_test.go │ ├── watcher.go │ └── watcher_test.go ├── gorm │ ├── README.md │ ├── context.go │ ├── example_test.go │ ├── factory.go │ ├── go.mod │ ├── go.sum │ ├── goroutine_leak_test.go │ ├── settings.go │ ├── settings_test.go │ ├── transaction.go │ └── transaction_test.go ├── mongo │ ├── context.go │ ├── context_test.go │ ├── contract.go │ ├── example_test.go │ ├── factory.go │ ├── go.mod │ ├── go.sum │ ├── goroutine_leak_test.go │ ├── settings.go │ ├── settings_test.go │ ├── transaction.go │ └── transaction_test.go ├── pgxv4 │ ├── context.go │ ├── contract.go │ ├── example_test.go │ ├── factory.go │ ├── go.mod │ ├── go.sum │ ├── goroutine_leak_test.go │ ├── settings.go │ ├── settings_test.go │ ├── transaction.go │ ├── transaction_integration_test.go │ └── transaction_test.go ├── pgxv5 │ ├── context.go │ ├── contract.go │ ├── example_test.go │ ├── factory.go │ ├── go.mod │ ├── go.sum │ ├── goroutine_leak_test.go │ ├── settings.go │ ├── settings_test.go │ ├── transaction.go │ ├── transaction_integration_test.go │ └── transaction_test.go ├── sql │ ├── context.go │ ├── contract.go │ ├── example_test.go │ ├── factory.go │ ├── go.mod │ ├── go.sum │ ├── goroutine_leak_test.go │ ├── mock │ │ └── savepoint.go │ ├── savepoint.go │ ├── settings.go │ ├── settings_test.go │ ├── transaction.go │ └── transaction_test.go └── sqlx │ ├── chained_example_test.go │ ├── context.go │ ├── contract.go │ ├── example_test.go │ ├── factory.go │ ├── go.mod │ ├── go.sum │ ├── goroutine_leak_test.go │ ├── transaction.go │ └── transaction_test.go ├── go.work ├── go.work.sum ├── sh ├── git.tag.sh ├── go.fmt.sh ├── go.mod.tidy.sh ├── go.mod.vendor.sh ├── go.test.coverage.sh ├── go.test.sh ├── lint.sh ├── tag.pkg.sh └── utils │ ├── drivers.sh │ ├── go.mod.dropreplace.default.sh │ └── go.mod.replace.default.sh └── trm ├── context.go ├── context ├── context.go ├── key.go └── key_test.go ├── drivers ├── is_closed.go ├── is_closed_test.go ├── mock │ ├── log.go │ ├── manager.go │ ├── settings.go │ └── transaction.go └── test │ ├── cleanup.go │ ├── cleanup_go1.14.go │ ├── docker-compose.yaml │ └── sql.go ├── go.mod ├── go.sum ├── internal ├── benchmark │ ├── allocation │ │ ├── README.md │ │ ├── key_in_ctx.go │ │ ├── main.go │ │ └── tx_in_ctx.go │ ├── common │ │ ├── ctx.go │ │ └── error.go │ ├── map_vs_context │ │ ├── README.md │ │ ├── common.go │ │ ├── context_test.go │ │ └── map_test.go │ └── with_or_without_trm │ │ ├── README.md │ │ ├── clean_test.go │ │ ├── common_test.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── model.go │ │ ├── repo.go │ │ ├── trm_test.go │ │ └── trmrepo.go ├── codegen │ └── redis │ │ └── README.md ├── prove_receiving_updates_without_vulnerabilities │ ├── README.md │ ├── example_test.go │ ├── go.mod │ └── go.sum └── recover_defer │ ├── defer_test.go │ └── recover_test.go ├── manager.go ├── manager ├── chain.go ├── chain_test.go ├── closer.go ├── log.go ├── log_test.go ├── manager.go ├── manager_test.go ├── mock │ └── log.go ├── option.go └── struct_test.go ├── manager_test.go ├── settings.go ├── settings ├── option.go ├── settings.go └── settings_test.go └── transaction.go /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/.github/workflows/main.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/.golangci.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/README.md -------------------------------------------------------------------------------- /drivers/goredis8/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/context.go -------------------------------------------------------------------------------- /drivers/goredis8/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/example_test.go -------------------------------------------------------------------------------- /drivers/goredis8/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/factory.go -------------------------------------------------------------------------------- /drivers/goredis8/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/go.mod -------------------------------------------------------------------------------- /drivers/goredis8/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/go.sum -------------------------------------------------------------------------------- /drivers/goredis8/goroutine_leak_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/goroutine_leak_test.go -------------------------------------------------------------------------------- /drivers/goredis8/option.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/option.go -------------------------------------------------------------------------------- /drivers/goredis8/readonly_func_without_tx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/readonly_func_without_tx.go -------------------------------------------------------------------------------- /drivers/goredis8/readonly_func_without_tx_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/readonly_func_without_tx_test.go -------------------------------------------------------------------------------- /drivers/goredis8/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/settings.go -------------------------------------------------------------------------------- /drivers/goredis8/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/transaction.go -------------------------------------------------------------------------------- /drivers/goredis8/transaction_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/transaction_test.go -------------------------------------------------------------------------------- /drivers/goredis8/watcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/watcher.go -------------------------------------------------------------------------------- /drivers/goredis8/watcher_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/goredis8/watcher_test.go -------------------------------------------------------------------------------- /drivers/gorm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/README.md -------------------------------------------------------------------------------- /drivers/gorm/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/context.go -------------------------------------------------------------------------------- /drivers/gorm/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/example_test.go -------------------------------------------------------------------------------- /drivers/gorm/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/factory.go -------------------------------------------------------------------------------- /drivers/gorm/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/go.mod -------------------------------------------------------------------------------- /drivers/gorm/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/go.sum -------------------------------------------------------------------------------- /drivers/gorm/goroutine_leak_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/goroutine_leak_test.go -------------------------------------------------------------------------------- /drivers/gorm/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/settings.go -------------------------------------------------------------------------------- /drivers/gorm/settings_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/settings_test.go -------------------------------------------------------------------------------- /drivers/gorm/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/transaction.go -------------------------------------------------------------------------------- /drivers/gorm/transaction_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/gorm/transaction_test.go -------------------------------------------------------------------------------- /drivers/mongo/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/context.go -------------------------------------------------------------------------------- /drivers/mongo/context_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/context_test.go -------------------------------------------------------------------------------- /drivers/mongo/contract.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/contract.go -------------------------------------------------------------------------------- /drivers/mongo/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/example_test.go -------------------------------------------------------------------------------- /drivers/mongo/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/factory.go -------------------------------------------------------------------------------- /drivers/mongo/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/go.mod -------------------------------------------------------------------------------- /drivers/mongo/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/go.sum -------------------------------------------------------------------------------- /drivers/mongo/goroutine_leak_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/goroutine_leak_test.go -------------------------------------------------------------------------------- /drivers/mongo/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/settings.go -------------------------------------------------------------------------------- /drivers/mongo/settings_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/settings_test.go -------------------------------------------------------------------------------- /drivers/mongo/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/transaction.go -------------------------------------------------------------------------------- /drivers/mongo/transaction_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/mongo/transaction_test.go -------------------------------------------------------------------------------- /drivers/pgxv4/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/context.go -------------------------------------------------------------------------------- /drivers/pgxv4/contract.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/contract.go -------------------------------------------------------------------------------- /drivers/pgxv4/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/example_test.go -------------------------------------------------------------------------------- /drivers/pgxv4/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/factory.go -------------------------------------------------------------------------------- /drivers/pgxv4/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/go.mod -------------------------------------------------------------------------------- /drivers/pgxv4/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/go.sum -------------------------------------------------------------------------------- /drivers/pgxv4/goroutine_leak_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/goroutine_leak_test.go -------------------------------------------------------------------------------- /drivers/pgxv4/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/settings.go -------------------------------------------------------------------------------- /drivers/pgxv4/settings_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/settings_test.go -------------------------------------------------------------------------------- /drivers/pgxv4/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/transaction.go -------------------------------------------------------------------------------- /drivers/pgxv4/transaction_integration_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/transaction_integration_test.go -------------------------------------------------------------------------------- /drivers/pgxv4/transaction_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv4/transaction_test.go -------------------------------------------------------------------------------- /drivers/pgxv5/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/context.go -------------------------------------------------------------------------------- /drivers/pgxv5/contract.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/contract.go -------------------------------------------------------------------------------- /drivers/pgxv5/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/example_test.go -------------------------------------------------------------------------------- /drivers/pgxv5/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/factory.go -------------------------------------------------------------------------------- /drivers/pgxv5/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/go.mod -------------------------------------------------------------------------------- /drivers/pgxv5/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/go.sum -------------------------------------------------------------------------------- /drivers/pgxv5/goroutine_leak_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/goroutine_leak_test.go -------------------------------------------------------------------------------- /drivers/pgxv5/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/settings.go -------------------------------------------------------------------------------- /drivers/pgxv5/settings_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/settings_test.go -------------------------------------------------------------------------------- /drivers/pgxv5/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/transaction.go -------------------------------------------------------------------------------- /drivers/pgxv5/transaction_integration_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/transaction_integration_test.go -------------------------------------------------------------------------------- /drivers/pgxv5/transaction_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/pgxv5/transaction_test.go -------------------------------------------------------------------------------- /drivers/sql/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/context.go -------------------------------------------------------------------------------- /drivers/sql/contract.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/contract.go -------------------------------------------------------------------------------- /drivers/sql/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/example_test.go -------------------------------------------------------------------------------- /drivers/sql/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/factory.go -------------------------------------------------------------------------------- /drivers/sql/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/go.mod -------------------------------------------------------------------------------- /drivers/sql/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/go.sum -------------------------------------------------------------------------------- /drivers/sql/goroutine_leak_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/goroutine_leak_test.go -------------------------------------------------------------------------------- /drivers/sql/mock/savepoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/mock/savepoint.go -------------------------------------------------------------------------------- /drivers/sql/savepoint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/savepoint.go -------------------------------------------------------------------------------- /drivers/sql/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/settings.go -------------------------------------------------------------------------------- /drivers/sql/settings_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/settings_test.go -------------------------------------------------------------------------------- /drivers/sql/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/transaction.go -------------------------------------------------------------------------------- /drivers/sql/transaction_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sql/transaction_test.go -------------------------------------------------------------------------------- /drivers/sqlx/chained_example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/chained_example_test.go -------------------------------------------------------------------------------- /drivers/sqlx/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/context.go -------------------------------------------------------------------------------- /drivers/sqlx/contract.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/contract.go -------------------------------------------------------------------------------- /drivers/sqlx/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/example_test.go -------------------------------------------------------------------------------- /drivers/sqlx/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/factory.go -------------------------------------------------------------------------------- /drivers/sqlx/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/go.mod -------------------------------------------------------------------------------- /drivers/sqlx/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/go.sum -------------------------------------------------------------------------------- /drivers/sqlx/goroutine_leak_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/goroutine_leak_test.go -------------------------------------------------------------------------------- /drivers/sqlx/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/transaction.go -------------------------------------------------------------------------------- /drivers/sqlx/transaction_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/drivers/sqlx/transaction_test.go -------------------------------------------------------------------------------- /go.work: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/go.work -------------------------------------------------------------------------------- /go.work.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/go.work.sum -------------------------------------------------------------------------------- /sh/git.tag.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/git.tag.sh -------------------------------------------------------------------------------- /sh/go.fmt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/go.fmt.sh -------------------------------------------------------------------------------- /sh/go.mod.tidy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/go.mod.tidy.sh -------------------------------------------------------------------------------- /sh/go.mod.vendor.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/go.mod.vendor.sh -------------------------------------------------------------------------------- /sh/go.test.coverage.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/go.test.coverage.sh -------------------------------------------------------------------------------- /sh/go.test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/go.test.sh -------------------------------------------------------------------------------- /sh/lint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/lint.sh -------------------------------------------------------------------------------- /sh/tag.pkg.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/tag.pkg.sh -------------------------------------------------------------------------------- /sh/utils/drivers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd ../ 4 | 5 | echo drivers/* 6 | -------------------------------------------------------------------------------- /sh/utils/go.mod.dropreplace.default.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/utils/go.mod.dropreplace.default.sh -------------------------------------------------------------------------------- /sh/utils/go.mod.replace.default.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/sh/utils/go.mod.replace.default.sh -------------------------------------------------------------------------------- /trm/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/context.go -------------------------------------------------------------------------------- /trm/context/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/context/context.go -------------------------------------------------------------------------------- /trm/context/key.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/context/key.go -------------------------------------------------------------------------------- /trm/context/key_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/context/key_test.go -------------------------------------------------------------------------------- /trm/drivers/is_closed.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/is_closed.go -------------------------------------------------------------------------------- /trm/drivers/is_closed_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/is_closed_test.go -------------------------------------------------------------------------------- /trm/drivers/mock/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/mock/log.go -------------------------------------------------------------------------------- /trm/drivers/mock/manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/mock/manager.go -------------------------------------------------------------------------------- /trm/drivers/mock/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/mock/settings.go -------------------------------------------------------------------------------- /trm/drivers/mock/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/mock/transaction.go -------------------------------------------------------------------------------- /trm/drivers/test/cleanup.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/test/cleanup.go -------------------------------------------------------------------------------- /trm/drivers/test/cleanup_go1.14.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/test/cleanup_go1.14.go -------------------------------------------------------------------------------- /trm/drivers/test/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/test/docker-compose.yaml -------------------------------------------------------------------------------- /trm/drivers/test/sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/drivers/test/sql.go -------------------------------------------------------------------------------- /trm/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/go.mod -------------------------------------------------------------------------------- /trm/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/go.sum -------------------------------------------------------------------------------- /trm/internal/benchmark/allocation/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/allocation/README.md -------------------------------------------------------------------------------- /trm/internal/benchmark/allocation/key_in_ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/allocation/key_in_ctx.go -------------------------------------------------------------------------------- /trm/internal/benchmark/allocation/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/allocation/main.go -------------------------------------------------------------------------------- /trm/internal/benchmark/allocation/tx_in_ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/allocation/tx_in_ctx.go -------------------------------------------------------------------------------- /trm/internal/benchmark/common/ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/common/ctx.go -------------------------------------------------------------------------------- /trm/internal/benchmark/common/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/common/error.go -------------------------------------------------------------------------------- /trm/internal/benchmark/map_vs_context/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/map_vs_context/README.md -------------------------------------------------------------------------------- /trm/internal/benchmark/map_vs_context/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/map_vs_context/common.go -------------------------------------------------------------------------------- /trm/internal/benchmark/map_vs_context/context_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/map_vs_context/context_test.go -------------------------------------------------------------------------------- /trm/internal/benchmark/map_vs_context/map_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/map_vs_context/map_test.go -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/README.md -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/clean_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/clean_test.go -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/common_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/common_test.go -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/go.mod -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/go.sum -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/model.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/model.go -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/repo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/repo.go -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/trm_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/trm_test.go -------------------------------------------------------------------------------- /trm/internal/benchmark/with_or_without_trm/trmrepo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/benchmark/with_or_without_trm/trmrepo.go -------------------------------------------------------------------------------- /trm/internal/codegen/redis/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/codegen/redis/README.md -------------------------------------------------------------------------------- /trm/internal/prove_receiving_updates_without_vulnerabilities/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/prove_receiving_updates_without_vulnerabilities/README.md -------------------------------------------------------------------------------- /trm/internal/prove_receiving_updates_without_vulnerabilities/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/prove_receiving_updates_without_vulnerabilities/example_test.go -------------------------------------------------------------------------------- /trm/internal/prove_receiving_updates_without_vulnerabilities/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/prove_receiving_updates_without_vulnerabilities/go.mod -------------------------------------------------------------------------------- /trm/internal/prove_receiving_updates_without_vulnerabilities/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/prove_receiving_updates_without_vulnerabilities/go.sum -------------------------------------------------------------------------------- /trm/internal/recover_defer/defer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/recover_defer/defer_test.go -------------------------------------------------------------------------------- /trm/internal/recover_defer/recover_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/internal/recover_defer/recover_test.go -------------------------------------------------------------------------------- /trm/manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager.go -------------------------------------------------------------------------------- /trm/manager/chain.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/chain.go -------------------------------------------------------------------------------- /trm/manager/chain_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/chain_test.go -------------------------------------------------------------------------------- /trm/manager/closer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/closer.go -------------------------------------------------------------------------------- /trm/manager/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/log.go -------------------------------------------------------------------------------- /trm/manager/log_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/log_test.go -------------------------------------------------------------------------------- /trm/manager/manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/manager.go -------------------------------------------------------------------------------- /trm/manager/manager_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/manager_test.go -------------------------------------------------------------------------------- /trm/manager/mock/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/mock/log.go -------------------------------------------------------------------------------- /trm/manager/option.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/option.go -------------------------------------------------------------------------------- /trm/manager/struct_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager/struct_test.go -------------------------------------------------------------------------------- /trm/manager_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/manager_test.go -------------------------------------------------------------------------------- /trm/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/settings.go -------------------------------------------------------------------------------- /trm/settings/option.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/settings/option.go -------------------------------------------------------------------------------- /trm/settings/settings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/settings/settings.go -------------------------------------------------------------------------------- /trm/settings/settings_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/settings/settings_test.go -------------------------------------------------------------------------------- /trm/transaction.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avito-tech/go-transaction-manager/HEAD/trm/transaction.go --------------------------------------------------------------------------------