MCPcopy Create free account

hub / github.com/ThreeDotsLabs/go-web-app-antipatterns / functions

Functions549 in github.com/ThreeDotsLabs/go-web-app-antipatterns

↓ 1 callersMethodEmail
()
05-distributed-transactions/01-distributed-monolith/users-svc/models.go:29
↓ 1 callersMethodEmail
()
05-distributed-transactions/03-outbox/users-svc/models.go:34
↓ 1 callersMethodEmail
()
05-distributed-transactions/02-eventual-consistency/users-svc/models.go:29
↓ 1 callersMethodEmail
()
04-transactions/04-update-func-closure/models.go:31
↓ 1 callersFunctionEmails
Emails retrieves all the records using an executor.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:596
↓ 1 callersFunctionEmails
Emails retrieves all the records using an executor.
01-coupling/03-loosely-coupled-generated/models/emails.go:596
↓ 1 callersFunctionFindEmail
FindEmail retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:603
↓ 1 callersFunctionFindEmail
FindEmail retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
01-coupling/03-loosely-coupled-generated/models/emails.go:603
↓ 1 callersFunctionFindUser
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
01-coupling/04-loosely-coupled-app-layer/models/users.go:623
↓ 1 callersFunctionFindUser
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
01-coupling/03-loosely-coupled-generated/models/users.go:623
↓ 1 callersMethodHandle
(ctx context.Context, cmd Subscribe)
03-cohesion/01-low-cohesion/subscribe.go:34
↓ 1 callersMethodHandle
(ctx context.Context, cmd Subscribe)
03-cohesion/03-generics/subscribe.go:52
↓ 1 callersMethodID
()
05-distributed-transactions/01-distributed-monolith/users-svc/models.go:25
↓ 1 callersMethodID
()
05-distributed-transactions/03-outbox/users-svc/models.go:30
↓ 1 callersMethodID
()
05-distributed-transactions/02-eventual-consistency/users-svc/models.go:25
↓ 1 callersMethodInsert
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:633
↓ 1 callersMethodInsert
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
01-coupling/03-loosely-coupled-generated/models/emails.go:633
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
05-distributed-transactions/01-distributed-monolith/users-svc/repository.go:9
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
05-distributed-transactions/01-distributed-monolith/orders-svc/repository.go:8
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
05-distributed-transactions/03-outbox/users-svc/repository.go:9
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
05-distributed-transactions/03-outbox/orders-svc/repository.go:8
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
05-distributed-transactions/02-eventual-consistency/users-svc/repository.go:9
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
05-distributed-transactions/02-eventual-consistency/orders-svc/repository.go:8
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
04-transactions/05-tx-provider/repository.go:8
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
04-transactions/02-tx-in-logic/repository.go:8
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
04-transactions/01-no-tx/repository.go:8
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
04-transactions/03-tx-in-repo/repository.go:9
↓ 1 callersFunctionMigrateDB
(db *sql.DB)
04-transactions/04-update-func-closure/repository.go:9
↓ 1 callersFunctionNewAddDiscountHandler
( discountRepository DiscountRepository, )
05-distributed-transactions/01-distributed-monolith/orders-svc/app.go:21
↓ 1 callersFunctionNewAddDiscountHandler
( discountRepository DiscountRepository, )
05-distributed-transactions/03-outbox/orders-svc/app.go:21
↓ 1 callersFunctionNewAddDiscountHandler
( discountRepository DiscountRepository, )
05-distributed-transactions/02-eventual-consistency/orders-svc/app.go:21
↓ 1 callersFunctionNewAuthorizedSubscribeHandler
(logger Logger, metricsClient MetricsClient)
03-cohesion/03-generics/subscribe.go:26
↓ 1 callersFunctionNewAuthorizedSubscribeHandler
(logger Logger, metricsClient MetricsClient)
03-cohesion/02-decorators/subscribe.go:26
↓ 1 callersFunctionNewEmail
(address string, primary bool)
01-coupling/04-loosely-coupled-app-layer/internal/user.go:120
↓ 1 callersFunctionNewEventsForwarder
( redisAddr string, db *sql.DB, )
05-distributed-transactions/03-outbox/users-svc/events.go:55
↓ 1 callersFunctionNewEventsRouter
( redisAddr string, addDiscountHandler AddDiscountHandler, )
05-distributed-transactions/03-outbox/orders-svc/events.go:31
↓ 1 callersFunctionNewEventsRouter
( redisAddr string, addDiscountHandler AddDiscountHandler, )
05-distributed-transactions/02-eventual-consistency/orders-svc/events.go:31
↓ 1 callersFunctionNewHTTPClient
(t *testing.T, port int)
01-coupling/tests/client.go:20
↓ 1 callersFunctionNewHTTPHandler
( usePointsAsDiscountHandler UsePointsAsDiscountHandler, )
05-distributed-transactions/01-distributed-monolith/users-svc/http.go:8
↓ 1 callersFunctionNewHTTPHandler
( addDiscountHandler AddDiscountHandler, )
05-distributed-transactions/01-distributed-monolith/orders-svc/http.go:8
↓ 1 callersFunctionNewHTTPHandler
( usePointsAsDiscountHandler UsePointsAsDiscountHandler, )
05-distributed-transactions/03-outbox/users-svc/http.go:8
↓ 1 callersFunctionNewHTTPHandler
( usePointsAsDiscountHandler UsePointsAsDiscountHandler, )
05-distributed-transactions/02-eventual-consistency/users-svc/http.go:8
↓ 1 callersFunctionNewHTTPHandler
( usePointsAsDiscountHandler UsePointsAsDiscountHandler, )
04-transactions/05-tx-provider/http.go:8
↓ 1 callersFunctionNewHTTPHandler
( usePointsAsDiscountHandler UsePointsAsDiscountHandler, )
04-transactions/02-tx-in-logic/http.go:8
↓ 1 callersFunctionNewHTTPHandler
( usePointsAsDiscountHandler UsePointsAsDiscountHandler, )
04-transactions/01-no-tx/http.go:8
↓ 1 callersFunctionNewHTTPHandler
( usePointsAsDiscountHandler UsePointsAsDiscountHandler, )
04-transactions/03-tx-in-repo/http.go:8
↓ 1 callersFunctionNewHTTPHandler
( usePointsAsDiscountHandler UsePointsAsDiscountHandler, )
04-transactions/04-update-func-closure/http.go:8
↓ 1 callersFunctionNewOrdersClient
(url string)
05-distributed-transactions/01-distributed-monolith/users-svc/orders.go:15
↓ 1 callersFunctionNewPostgresAuditLogRepository
(db db)
04-transactions/05-tx-provider/repository.go:92
↓ 1 callersFunctionNewPostgresDiscountRepository
(db *sql.DB)
05-distributed-transactions/01-distributed-monolith/orders-svc/repository.go:22
↓ 1 callersFunctionNewPostgresDiscountRepository
(db *sql.DB)
05-distributed-transactions/03-outbox/orders-svc/repository.go:22
↓ 1 callersFunctionNewPostgresDiscountRepository
(db *sql.DB)
05-distributed-transactions/02-eventual-consistency/orders-svc/repository.go:22
↓ 1 callersFunctionNewPostgresDiscountRepository
()
04-transactions/02-tx-in-logic/repository.go:50
↓ 1 callersFunctionNewPostgresDiscountRepository
(db *sql.DB)
04-transactions/01-no-tx/repository.go:56
↓ 1 callersFunctionNewPostgresUserRepository
(db *sql.DB)
05-distributed-transactions/01-distributed-monolith/users-svc/repository.go:25
↓ 1 callersFunctionNewPostgresUserRepository
(db *sql.DB)
05-distributed-transactions/03-outbox/users-svc/repository.go:25
↓ 1 callersFunctionNewPostgresUserRepository
(db *sql.DB)
05-distributed-transactions/02-eventual-consistency/users-svc/repository.go:25
↓ 1 callersFunctionNewPostgresUserRepository
(db db)
04-transactions/05-tx-provider/repository.go:40
↓ 1 callersFunctionNewPostgresUserRepository
()
04-transactions/02-tx-in-logic/repository.go:27
↓ 1 callersFunctionNewPostgresUserRepository
(db *sql.DB)
04-transactions/01-no-tx/repository.go:29
↓ 1 callersFunctionNewPostgresUserRepository
(db *sql.DB)
04-transactions/03-tx-in-repo/repository.go:30
↓ 1 callersFunctionNewPostgresUserRepository
(db *sql.DB)
04-transactions/04-update-func-closure/repository.go:30
↓ 1 callersFunctionNewSubscribeHandler
()
03-cohesion/03-generics/subscribe.go:48
↓ 1 callersFunctionNewSubscribeHandler
()
03-cohesion/02-decorators/subscribe.go:48
↓ 1 callersFunctionNewTransactionProvider
(db *sql.DB)
04-transactions/05-tx-provider/tx.go:12
↓ 1 callersFunctionNewUnauthorizedSubscribeHandler
(logger Logger, metricsClient MetricsClient)
03-cohesion/03-generics/subscribe.go:38
↓ 1 callersFunctionNewUnauthorizedSubscribeHandler
(logger Logger, metricsClient MetricsClient)
03-cohesion/02-decorators/subscribe.go:38
↓ 1 callersFunctionNewUsePointsAsDiscountHandler
( userRepository UserRepository, ordersService OrdersService, )
05-distributed-transactions/01-distributed-monolith/users-svc/app.go:26
↓ 1 callersFunctionNewUsePointsAsDiscountHandler
( userRepository UserRepository, )
05-distributed-transactions/03-outbox/users-svc/app.go:20
↓ 1 callersFunctionNewUsePointsAsDiscountHandler
( userRepository UserRepository, eventPublisher EventPublisher, )
05-distributed-transactions/02-eventual-consistency/users-svc/app.go:31
↓ 1 callersFunctionNewUsePointsAsDiscountHandler
( txProvider txProvider, )
04-transactions/05-tx-provider/app.go:34
↓ 1 callersFunctionNewUsePointsAsDiscountHandler
( db *sql.DB, userRepository UserRepository, discountRepository DiscountRepository, )
04-transactions/02-tx-in-logic/app.go:30
↓ 1 callersFunctionNewUsePointsAsDiscountHandler
( userRepository UserRepository, discountRepository DiscountRepository, )
04-transactions/01-no-tx/app.go:28
↓ 1 callersFunctionNewUsePointsAsDiscountHandler
( userRepository UserRepository, )
04-transactions/03-tx-in-repo/app.go:22
↓ 1 callersFunctionNewUsePointsAsDiscountHandler
( userRepository UserRepository, )
04-transactions/04-update-func-closure/app.go:20
↓ 1 callersFunctionNewUser
(firstName string, lastName string, emailAddress string)
01-coupling/04-loosely-coupled-app-layer/internal/user.go:21
↓ 1 callersFunctionNewWatermillEventBus
(db *sql.Tx)
05-distributed-transactions/03-outbox/users-svc/events.go:17
↓ 1 callersFunctionNewWatermillEventBus
(redisAddr string)
05-distributed-transactions/02-eventual-consistency/users-svc/events.go:10
↓ 1 callersMethodNextOrderDiscount
()
04-transactions/05-tx-provider/models.go:47
↓ 1 callersMethodNextOrderDiscount
()
04-transactions/04-update-func-closure/models.go:47
↓ 1 callersMethodOne
One returns a single user record from the query.
01-coupling/04-loosely-coupled-app-layer/models/users.go:372
↓ 1 callersMethodOne
One returns a single user record from the query.
01-coupling/03-loosely-coupled-generated/models/users.go:372
↓ 1 callersMethodPoints
()
05-distributed-transactions/01-distributed-monolith/users-svc/models.go:33
↓ 1 callersMethodPoints
()
05-distributed-transactions/03-outbox/users-svc/models.go:38
↓ 1 callersMethodPoints
()
05-distributed-transactions/02-eventual-consistency/users-svc/models.go:33
↓ 1 callersMethodPoints
()
04-transactions/05-tx-provider/models.go:35
↓ 1 callersMethodPoints
()
04-transactions/04-update-func-closure/models.go:35
↓ 1 callersMethodStoreAuditLog
(ctx context.Context, log string)
04-transactions/05-tx-provider/app.go:31
↓ 1 callersMethodTransact
(txFunc func(adapters Adapters) error)
04-transactions/05-tx-provider/app.go:18
↓ 1 callersFunctionUnmarshalDiscounts
(discount int)
04-transactions/05-tx-provider/models.go:60
↓ 1 callersFunctionUnmarshalDiscounts
(discount int)
04-transactions/04-update-func-closure/models.go:60
↓ 1 callersFunctionUnmarshalEmail
UnmarshalEmail loads the e-mail from database data. It shouldn't be used for anything else.
01-coupling/04-loosely-coupled-app-layer/internal/user.go:137
↓ 1 callersFunctionUnmarshalUser
(id int, email string, points int)
05-distributed-transactions/01-distributed-monolith/users-svc/models.go:37
↓ 1 callersFunctionUnmarshalUser
(id int, email string, points int)
05-distributed-transactions/03-outbox/users-svc/models.go:42
↓ 1 callersFunctionUnmarshalUser
(id int, email string, points int)
05-distributed-transactions/02-eventual-consistency/users-svc/models.go:37
↓ 1 callersFunctionUnmarshalUser
(id int, email string, points int, discounts *Discounts)
04-transactions/05-tx-provider/models.go:51
↓ 1 callersFunctionUnmarshalUser
(id int, email string, points int, discounts *Discounts)
04-transactions/04-update-func-closure/models.go:51
↓ 1 callersFunctionUnmarshalUser
UnmarshalUser loads the user from database data. It shouldn't be used for anything else.
01-coupling/04-loosely-coupled-app-layer/internal/user.go:39
↓ 1 callersMethodUpdate
(user User)
01-coupling/01-tightly-coupled/internal/db.go:72
↓ 1 callersMethodUpdate
(ctx context.Context, user User)
01-coupling/04-loosely-coupled-app-layer/internal/db.go:96
← previousnext →101–200 of 549, ranked by callers