MCPcopy Create free account

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

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

↓ 1 callersMethodUpdate
(user UserDBModel)
01-coupling/02-loosely-coupled/internal/db.go:99
↓ 1 callersMethodUpdate
(ctx context.Context, user *models.User)
01-coupling/03-loosely-coupled-generated/internal/db.go:82
↓ 1 callersMethodUsePoints
(points int)
05-distributed-transactions/01-distributed-monolith/users-svc/models.go:11
↓ 1 callersMethodUsePoints
(points int)
05-distributed-transactions/03-outbox/users-svc/models.go:16
↓ 1 callersMethodUsePoints
(points int)
05-distributed-transactions/02-eventual-consistency/users-svc/models.go:11
↓ 1 callersMethodUsePointsAsDiscount
(points int)
04-transactions/05-tx-provider/models.go:12
↓ 1 callersMethodUsePointsAsDiscount
(points int)
04-transactions/04-update-func-closure/models.go:12
↓ 1 callersMethodUsePointsForDiscount
(ctx context.Context, userID int, point int)
04-transactions/03-tx-in-repo/app.go:19
↓ 1 callersFunctionUserFromContext
(ctx context.Context)
03-cohesion/01-low-cohesion/user.go:13
↓ 1 callersFunctionUserFromContext
(ctx context.Context)
03-cohesion/03-generics/user.go:13
↓ 1 callersFunctionUserFromContext
(ctx context.Context)
03-cohesion/02-decorators/user.go:13
↓ 1 callersFunctionUsers
Users retrieves all the records using an executor.
01-coupling/04-loosely-coupled-app-layer/models/users.go:616
↓ 1 callersFunctionUsers
Users retrieves all the records using an executor.
01-coupling/03-loosely-coupled-generated/models/users.go:616
↓ 1 callersFunctioncreateUser
(t *testing.T, tc testCase, points int)
05-distributed-transactions/tests/all_test.go:59
↓ 1 callersFunctioncreateUser
(t *testing.T, tc testCase, points int)
04-transactions/tests/all_test.go:61
↓ 1 callersFunctiondbEmailFromApp
(e Email)
01-coupling/04-loosely-coupled-app-layer/internal/db.go:128
↓ 1 callersMethoddoAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:260
↓ 1 callersMethoddoAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:273
↓ 1 callersMethoddoAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:260
↓ 1 callersMethoddoAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:273
↓ 1 callersMethoddoAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:290
↓ 1 callersMethoddoAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:303
↓ 1 callersMethoddoAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:290
↓ 1 callersMethoddoAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:303
↓ 1 callersMethoddoAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:320
↓ 1 callersMethoddoAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:333
↓ 1 callersMethoddoAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:320
↓ 1 callersMethoddoAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:333
↓ 1 callersMethoddoBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:200
↓ 1 callersMethoddoBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:213
↓ 1 callersMethoddoBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:200
↓ 1 callersMethoddoBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:213
↓ 1 callersMethoddoBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:215
↓ 1 callersMethoddoBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:228
↓ 1 callersMethoddoBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:215
↓ 1 callersMethoddoBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:228
↓ 1 callersMethoddoBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:245
↓ 1 callersMethoddoBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:258
↓ 1 callersMethoddoBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:245
↓ 1 callersMethoddoBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:258
↓ 1 callersFunctionemailResponseFromDBModel
(e EmailDBModel)
01-coupling/02-loosely-coupled/internal/http.go:225
↓ 1 callersFunctionemailResponseFromDBModel
(e *models.Email)
01-coupling/03-loosely-coupled-generated/internal/http.go:215
↓ 1 callersFunctionnewEmailResponse
(e Email)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:180
↓ 1 callersFunctionrunInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
05-distributed-transactions/01-distributed-monolith/users-svc/repository.go:62
↓ 1 callersFunctionrunInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
05-distributed-transactions/03-outbox/users-svc/repository.go:74
↓ 1 callersFunctionrunInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
05-distributed-transactions/02-eventual-consistency/users-svc/repository.go:62
↓ 1 callersFunctionrunInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
04-transactions/05-tx-provider/tx.go:29
↓ 1 callersFunctionrunInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
04-transactions/02-tx-in-logic/app.go:71
↓ 1 callersFunctionrunInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
04-transactions/03-tx-in-repo/repository.go:64
↓ 1 callersFunctionrunInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
04-transactions/04-update-func-closure/repository.go:81
↓ 1 callersFunctionuserDBModelFromCreateRequest
(r CreateUserRequest)
01-coupling/02-loosely-coupled/internal/http.go:232
↓ 1 callersFunctionuserFromRequest
(r *http.Request)
03-cohesion/01-low-cohesion/main.go:84
↓ 1 callersFunctionuserFromRequest
(r *http.Request)
03-cohesion/03-generics/main.go:71
↓ 1 callersFunctionuserFromRequest
(r *http.Request)
03-cohesion/02-decorators/main.go:71
MethodAddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/01-distributed-monolith/users-svc/orders.go:27
MethodAddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/01-distributed-monolith/orders-svc/repository.go:28
MethodAddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/01-distributed-monolith/orders-svc/app.go:18
MethodAddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/03-outbox/orders-svc/repository.go:28
MethodAddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/03-outbox/orders-svc/app.go:18
MethodAddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/02-eventual-consistency/orders-svc/repository.go:28
MethodAddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/02-eventual-consistency/orders-svc/app.go:18
MethodAddDiscount
(ctx context.Context, tx *sql.Tx, userID int, discount int)
04-transactions/02-tx-in-logic/repository.go:54
MethodAddDiscount
(ctx context.Context, tx *sql.Tx, userID int, discount int)
04-transactions/02-tx-in-logic/app.go:27
MethodAddDiscount
(ctx context.Context, userID int, discount int)
04-transactions/01-no-tx/repository.go:62
FunctionAddEmailHook
AddEmailHook registers your hook function for all future operations.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:335
FunctionAddEmailHook
AddEmailHook registers your hook function for all future operations.
01-coupling/03-loosely-coupled-generated/models/emails.go:335
MethodAddEmails
AddEmails adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.E
01-coupling/04-loosely-coupled-app-layer/models/users.go:566
MethodAddEmails
AddEmails adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.E
01-coupling/03-loosely-coupled-generated/models/users.go:566
FunctionAddUserHook
AddUserHook registers your hook function for all future operations.
01-coupling/04-loosely-coupled-app-layer/models/users.go:348
FunctionAddUserHook
AddUserHook registers your hook function for all future operations.
01-coupling/03-loosely-coupled-generated/models/users.go:348
MethodAll
All returns all Email records from the query.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:380
MethodAll
All returns all User records from the query.
01-coupling/04-loosely-coupled-app-layer/models/users.go:393
MethodAll
All returns all Email records from the query.
01-coupling/03-loosely-coupled-generated/models/emails.go:380
MethodAll
All returns all User records from the query.
01-coupling/03-loosely-coupled-generated/models/users.go:393
MethodCount
Count returns the count of all Email records in the query.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:400
MethodCount
Count returns the count of all User records in the query.
01-coupling/04-loosely-coupled-app-layer/models/users.go:413
MethodCount
Count returns the count of all Email records in the query.
01-coupling/03-loosely-coupled-generated/models/emails.go:400
MethodCount
Count returns the count of all User records in the query.
01-coupling/03-loosely-coupled-generated/models/users.go:413
MethodDelete
Delete deletes a single Email record with an executor. Delete will match against the primary key column to find the record to delete.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:1016
MethodDelete
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
01-coupling/04-loosely-coupled-app-layer/models/users.go:1059
MethodDelete
Delete deletes a single Email record with an executor. Delete will match against the primary key column to find the record to delete.
01-coupling/03-loosely-coupled-generated/models/emails.go:1016
MethodDelete
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
01-coupling/03-loosely-coupled-generated/models/users.go:1059
MethodDeleteAll
DeleteAll deletes all matching rows.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:1051
MethodDeleteAll
DeleteAll deletes all rows in the slice, using an executor.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:1072
MethodDeleteAll
DeleteAll deletes all rows in the slice, using an executor.
01-coupling/04-loosely-coupled-app-layer/models/users.go:1115
MethodDeleteAll
DeleteAll deletes all matching rows.
01-coupling/03-loosely-coupled-generated/models/emails.go:1051
MethodDeleteAll
DeleteAll deletes all rows in the slice, using an executor.
01-coupling/03-loosely-coupled-generated/models/emails.go:1072
MethodDeleteAll
DeleteAll deletes all rows in the slice, using an executor.
01-coupling/03-loosely-coupled-generated/models/users.go:1115
MethodDeleteUser
(w http.ResponseWriter, r *http.Request)
01-coupling/01-tightly-coupled/internal/http.go:160
MethodDeleteUser
(w http.ResponseWriter, r *http.Request, rawUserID UserID)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:147
MethodDeleteUser
Delete user (DELETE /users/{userID})
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:24
MethodDeleteUser
DeleteUser operation middleware
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:72
MethodDeleteUser
(id int)
01-coupling/tests/client.go:132
MethodDeleteUser
(w http.ResponseWriter, r *http.Request)
01-coupling/02-loosely-coupled/internal/http.go:192
MethodDeleteUser
(w http.ResponseWriter, r *http.Request, rawUserID UserID)
01-coupling/03-loosely-coupled-generated/internal/http.go:182
MethodDeleteUser
DeleteUser operation middleware
01-coupling/03-loosely-coupled-generated/internal/http_server.go:72
MethodEQ
(x int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:63
MethodEQ
(x string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:86
MethodEQ
(x bool)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:109
MethodEQ
(x null.String)
01-coupling/04-loosely-coupled-app-layer/models/users.go:79
← previousnext →201–300 of 549, ranked by callers