File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
1515// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1616var DefaultCtxGetter = NewCtxGetter (trmcontext .DefaultManager )
1717
18- // CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to *gorm.DB.
18+ // CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to *gorm.DB.
1919type CtxGetter struct {
2020 ctxManager trm.CtxManager
2121}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
1313// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1414var DefaultCtxGetter = NewCtxGetter (trmcontext .DefaultManager )
1515
16- // CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
16+ // CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to Tr.
1717type CtxGetter struct {
1818 ctxManager trm.CtxManager
1919}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
1313// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1414var DefaultCtxGetter = NewCtxGetter (trmcontext .DefaultManager )
1515
16- // CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
16+ // CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to Tr.
1717type CtxGetter struct {
1818 ctxManager trm.CtxManager
1919}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1313var DefaultCtxGetter = NewCtxGetter (trmcontext .DefaultManager )
1414
15- // CtxGetter gets redis.Pipeliner from trm.СtxManager by casting trm.Transaction to redis.UniversalClient.
15+ // CtxGetter gets redis.Pipeliner from trm.CtxManager by casting trm.Transaction to redis.UniversalClient.
1616type CtxGetter struct {
1717 ctxManager trm.CtxManager
1818}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
1111// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1212var DefaultCtxGetter = NewCtxGetter (trmcontext .DefaultManager )
1313
14- // CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
14+ // CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to Tr.
1515type CtxGetter struct {
1616 ctxManager trm.CtxManager
1717}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212// DefaultCtxGetter is the CtxGetter with settings.DefaultCtxKey.
1313var DefaultCtxGetter = NewCtxGetter (trmcontext .DefaultManager )
1414
15- // CtxGetter gets Tr from trm.СtxManager by casting trm.Transaction to Tr.
15+ // CtxGetter gets Tr from trm.CtxManager by casting trm.Transaction to Tr.
1616type CtxGetter struct {
1717 ctxManager trm.CtxManager
1818}
Original file line number Diff line number Diff line change @@ -10,11 +10,8 @@ type CtxKey interface{}
1010// CtxGetter gets Transaction from context.Context.
1111type CtxGetter func (ctx context.Context ) Transaction
1212
13- // СtxManager sets and gets a Transaction in/from context.Context.
14- //
15- // Deprecated: Type name contains first non-ASCII character.
16- // Type is safed in term of backward compatibility, use below CtxManager instead.
17- type СtxManager interface {
13+ // CtxManager sets and gets a Transaction in/from context.Context.
14+ type CtxManager interface {
1815 // Default gets Transaction from context.Context by default CtxKey.
1916 Default (ctx context.Context ) Transaction
2017 // SetDefault sets.Transaction in context.Context by default CtxKey.
@@ -26,5 +23,8 @@ type СtxManager interface {
2623 SetByKey (ctx context.Context , key CtxKey , t Transaction ) context.Context
2724}
2825
29- // CtxManager sets and gets a Transaction in/from context.Context.
30- type CtxManager = СtxManager
26+ // СtxManager is old name with first non-ASCII character.
27+ // Deprecated: Type name contains first non-ASCII character.
28+ // Type is safed in terms of backward compatibility, use above CtxManager instead.
29+ type СtxManager = CtxManager
30+
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ import (
88 "github.com/avito-tech/go-transaction-manager/trm/settings"
99)
1010
11- // DefaultManager is a trm.СtxManager with settings.DefaultCtxKey.
11+ // DefaultManager is a trm.CtxManager with settings.DefaultCtxKey.
1212var DefaultManager = New (settings .DefaultCtxKey ) //nolint:gochecknoglobals
1313
14- // Manager implements trm.СtxManager .
14+ // Manager implements trm.CtxManager .
1515type Manager struct {
1616 ctxKey trm.CtxKey
1717}
You can’t perform that action at this time.
0 commit comments