Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThreeDotsLabs/go-web-app-antipatterns
/ functions
Functions
549 in github.com/ThreeDotsLabs/go-web-app-antipatterns
⨍
Functions
549
◇
Types & classes
216
↓ 1 callers
Method
Update
(user UserDBModel)
01-coupling/02-loosely-coupled/internal/db.go:99
↓ 1 callers
Method
Update
(ctx context.Context, user *models.User)
01-coupling/03-loosely-coupled-generated/internal/db.go:82
↓ 1 callers
Method
UsePoints
(points int)
05-distributed-transactions/01-distributed-monolith/users-svc/models.go:11
↓ 1 callers
Method
UsePoints
(points int)
05-distributed-transactions/03-outbox/users-svc/models.go:16
↓ 1 callers
Method
UsePoints
(points int)
05-distributed-transactions/02-eventual-consistency/users-svc/models.go:11
↓ 1 callers
Method
UsePointsAsDiscount
(points int)
04-transactions/05-tx-provider/models.go:12
↓ 1 callers
Method
UsePointsAsDiscount
(points int)
04-transactions/04-update-func-closure/models.go:12
↓ 1 callers
Method
UsePointsForDiscount
(ctx context.Context, userID int, point int)
04-transactions/03-tx-in-repo/app.go:19
↓ 1 callers
Function
UserFromContext
(ctx context.Context)
03-cohesion/01-low-cohesion/user.go:13
↓ 1 callers
Function
UserFromContext
(ctx context.Context)
03-cohesion/03-generics/user.go:13
↓ 1 callers
Function
UserFromContext
(ctx context.Context)
03-cohesion/02-decorators/user.go:13
↓ 1 callers
Function
Users
Users retrieves all the records using an executor.
01-coupling/04-loosely-coupled-app-layer/models/users.go:616
↓ 1 callers
Function
Users
Users retrieves all the records using an executor.
01-coupling/03-loosely-coupled-generated/models/users.go:616
↓ 1 callers
Function
createUser
(t *testing.T, tc testCase, points int)
05-distributed-transactions/tests/all_test.go:59
↓ 1 callers
Function
createUser
(t *testing.T, tc testCase, points int)
04-transactions/tests/all_test.go:61
↓ 1 callers
Function
dbEmailFromApp
(e Email)
01-coupling/04-loosely-coupled-app-layer/internal/db.go:128
↓ 1 callers
Method
doAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:260
↓ 1 callers
Method
doAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:273
↓ 1 callers
Method
doAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:260
↓ 1 callers
Method
doAfterInsertHooks
doAfterInsertHooks executes all "after Insert" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:273
↓ 1 callers
Method
doAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:290
↓ 1 callers
Method
doAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:303
↓ 1 callers
Method
doAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:290
↓ 1 callers
Method
doAfterUpdateHooks
doAfterUpdateHooks executes all "after Update" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:303
↓ 1 callers
Method
doAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:320
↓ 1 callers
Method
doAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:333
↓ 1 callers
Method
doAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:320
↓ 1 callers
Method
doAfterUpsertHooks
doAfterUpsertHooks executes all "after Upsert" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:333
↓ 1 callers
Method
doBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:200
↓ 1 callers
Method
doBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:213
↓ 1 callers
Method
doBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:200
↓ 1 callers
Method
doBeforeInsertHooks
doBeforeInsertHooks executes all "before insert" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:213
↓ 1 callers
Method
doBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:215
↓ 1 callers
Method
doBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:228
↓ 1 callers
Method
doBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:215
↓ 1 callers
Method
doBeforeUpdateHooks
doBeforeUpdateHooks executes all "before Update" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:228
↓ 1 callers
Method
doBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:245
↓ 1 callers
Method
doBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
01-coupling/04-loosely-coupled-app-layer/models/users.go:258
↓ 1 callers
Method
doBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
01-coupling/03-loosely-coupled-generated/models/emails.go:245
↓ 1 callers
Method
doBeforeUpsertHooks
doBeforeUpsertHooks executes all "before Upsert" hooks.
01-coupling/03-loosely-coupled-generated/models/users.go:258
↓ 1 callers
Function
emailResponseFromDBModel
(e EmailDBModel)
01-coupling/02-loosely-coupled/internal/http.go:225
↓ 1 callers
Function
emailResponseFromDBModel
(e *models.Email)
01-coupling/03-loosely-coupled-generated/internal/http.go:215
↓ 1 callers
Function
newEmailResponse
(e Email)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:180
↓ 1 callers
Function
runInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
05-distributed-transactions/01-distributed-monolith/users-svc/repository.go:62
↓ 1 callers
Function
runInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
05-distributed-transactions/03-outbox/users-svc/repository.go:74
↓ 1 callers
Function
runInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
05-distributed-transactions/02-eventual-consistency/users-svc/repository.go:62
↓ 1 callers
Function
runInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
04-transactions/05-tx-provider/tx.go:29
↓ 1 callers
Function
runInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
04-transactions/02-tx-in-logic/app.go:71
↓ 1 callers
Function
runInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
04-transactions/03-tx-in-repo/repository.go:64
↓ 1 callers
Function
runInTx
(db *sql.DB, fn func(tx *sql.Tx) error)
04-transactions/04-update-func-closure/repository.go:81
↓ 1 callers
Function
userDBModelFromCreateRequest
(r CreateUserRequest)
01-coupling/02-loosely-coupled/internal/http.go:232
↓ 1 callers
Function
userFromRequest
(r *http.Request)
03-cohesion/01-low-cohesion/main.go:84
↓ 1 callers
Function
userFromRequest
(r *http.Request)
03-cohesion/03-generics/main.go:71
↓ 1 callers
Function
userFromRequest
(r *http.Request)
03-cohesion/02-decorators/main.go:71
Method
AddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/01-distributed-monolith/users-svc/orders.go:27
Method
AddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/01-distributed-monolith/orders-svc/repository.go:28
Method
AddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/01-distributed-monolith/orders-svc/app.go:18
Method
AddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/03-outbox/orders-svc/repository.go:28
Method
AddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/03-outbox/orders-svc/app.go:18
Method
AddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/02-eventual-consistency/orders-svc/repository.go:28
Method
AddDiscount
(ctx context.Context, userID int, discount int)
05-distributed-transactions/02-eventual-consistency/orders-svc/app.go:18
Method
AddDiscount
(ctx context.Context, tx *sql.Tx, userID int, discount int)
04-transactions/02-tx-in-logic/repository.go:54
Method
AddDiscount
(ctx context.Context, tx *sql.Tx, userID int, discount int)
04-transactions/02-tx-in-logic/app.go:27
Method
AddDiscount
(ctx context.Context, userID int, discount int)
04-transactions/01-no-tx/repository.go:62
Function
AddEmailHook
AddEmailHook registers your hook function for all future operations.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:335
Function
AddEmailHook
AddEmailHook registers your hook function for all future operations.
01-coupling/03-loosely-coupled-generated/models/emails.go:335
Method
AddEmails
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
Method
AddEmails
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
Function
AddUserHook
AddUserHook registers your hook function for all future operations.
01-coupling/04-loosely-coupled-app-layer/models/users.go:348
Function
AddUserHook
AddUserHook registers your hook function for all future operations.
01-coupling/03-loosely-coupled-generated/models/users.go:348
Method
All
All returns all Email records from the query.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:380
Method
All
All returns all User records from the query.
01-coupling/04-loosely-coupled-app-layer/models/users.go:393
Method
All
All returns all Email records from the query.
01-coupling/03-loosely-coupled-generated/models/emails.go:380
Method
All
All returns all User records from the query.
01-coupling/03-loosely-coupled-generated/models/users.go:393
Method
Count
Count returns the count of all Email records in the query.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:400
Method
Count
Count returns the count of all User records in the query.
01-coupling/04-loosely-coupled-app-layer/models/users.go:413
Method
Count
Count returns the count of all Email records in the query.
01-coupling/03-loosely-coupled-generated/models/emails.go:400
Method
Count
Count returns the count of all User records in the query.
01-coupling/03-loosely-coupled-generated/models/users.go:413
Method
Delete
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
Method
Delete
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
Method
Delete
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
Method
Delete
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
Method
DeleteAll
DeleteAll deletes all matching rows.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:1051
Method
DeleteAll
DeleteAll deletes all rows in the slice, using an executor.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:1072
Method
DeleteAll
DeleteAll deletes all rows in the slice, using an executor.
01-coupling/04-loosely-coupled-app-layer/models/users.go:1115
Method
DeleteAll
DeleteAll deletes all matching rows.
01-coupling/03-loosely-coupled-generated/models/emails.go:1051
Method
DeleteAll
DeleteAll deletes all rows in the slice, using an executor.
01-coupling/03-loosely-coupled-generated/models/emails.go:1072
Method
DeleteAll
DeleteAll deletes all rows in the slice, using an executor.
01-coupling/03-loosely-coupled-generated/models/users.go:1115
Method
DeleteUser
(w http.ResponseWriter, r *http.Request)
01-coupling/01-tightly-coupled/internal/http.go:160
Method
DeleteUser
(w http.ResponseWriter, r *http.Request, rawUserID UserID)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:147
Method
DeleteUser
Delete user (DELETE /users/{userID})
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:24
Method
DeleteUser
DeleteUser operation middleware
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:72
Method
DeleteUser
(id int)
01-coupling/tests/client.go:132
Method
DeleteUser
(w http.ResponseWriter, r *http.Request)
01-coupling/02-loosely-coupled/internal/http.go:192
Method
DeleteUser
(w http.ResponseWriter, r *http.Request, rawUserID UserID)
01-coupling/03-loosely-coupled-generated/internal/http.go:182
Method
DeleteUser
DeleteUser operation middleware
01-coupling/03-loosely-coupled-generated/internal/http_server.go:72
Method
EQ
(x int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:63
Method
EQ
(x string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:86
Method
EQ
(x bool)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:109
Method
EQ
(x null.String)
01-coupling/04-loosely-coupled-app-layer/models/users.go:79
← previous
next →
201–300 of 549, ranked by callers