MCPcopy Create free account

hub / github.com/ardanlabs/service / functions

Functions918 in github.com/ardanlabs/service

↓ 1 callersFunctionqueryByID200
(sd apitest.SeedData)
api/services/sales/tests/productapi/query_test.go:79
↓ 1 callersFunctionqueryByID200
(sd apitest.SeedData)
api/services/sales/tests/homeapi/query_test.go:79
↓ 1 callersFunctionquoteKey
quoteKey reports whether key is required to be quoted.
foundation/logger/debug.go:41
↓ 1 callersFunctionquoteValue
quoteValue reports whether value is required to be quoted.
foundation/logger/debug.go:46
↓ 1 callersMethodregisterDelegateFunctions
registerDelegateFunctions will register action functions with the delegate system. If the business was constructed for query only, there won't be a de
business/domain/productbus/event.go:15
↓ 1 callersMethodregisterDelegateFunctions
registerDelegateFunctions will register action functions with the delegate system. If the business was constructed for query only, there won't be a de
business/domain/homebus/event.go:15
↓ 1 callersFunctionregisterPlugins
(app)
api/frontends/admin/src/plugins/index.js:13
↓ 1 callersMethodremoveWork
(workKey string)
foundation/worker/worker.go:165
↓ 1 callersFunctionrun
(ctx context.Context, log *logger.Logger)
api/services/auth/main.go:55
↓ 1 callersFunctionrun
(ctx context.Context, log *logger.Logger)
api/services/metrics/main.go:48
↓ 1 callersFunctionrun
(ctx context.Context, log *logger.Logger)
api/services/sales/main.go:76
↓ 1 callersFunctionrun
(log *logger.Logger)
api/tooling/admin/main.go:49
↓ 1 callersFunctionsanitize
sanitize replaces invalid Prometheus metric name characters with underscores. A leading digit is prefixed with '_' to satisfy [a-zA-Z_:][a-zA-Z0-9_:]*
api/services/metrics/publisher/prometheus/prometheus.go:125
↓ 1 callersFunctionsendDatadog
sendDatadog sends data to the datadog servers.
api/services/metrics/publisher/datadog/datadog.go:140
↓ 1 callersFunctionsetHome
(ctx context.Context, hme homebus.Home)
app/sdk/mid/mid.go:106
↓ 1 callersFunctionsetProduct
(ctx context.Context, prd productbus.Product)
app/sdk/mid/mid.go:92
↓ 1 callersFunctionsetTraceID
(ctx context.Context, traceID string)
foundation/otel/context.go:20
↓ 1 callersFunctionsetTracer
(ctx context.Context, tracer trace.Tracer)
foundation/otel/context.go:16
↓ 1 callersFunctionsetTran
(ctx context.Context, tx sqldb.CommitRollbacker)
app/sdk/mid/mid.go:120
↓ 1 callersFunctionsetUser
(ctx context.Context, usr userbus.User)
app/sdk/mid/mid.go:78
↓ 1 callersFunctiontest1
(ath *auth.Auth)
app/sdk/auth/auth_test.go:35
↓ 1 callersFunctiontest2
(ath *auth.Auth)
app/sdk/auth/auth_test.go:78
↓ 1 callersFunctiontest3
(ath *auth.Auth)
app/sdk/auth/auth_test.go:126
↓ 1 callersFunctiontest4
(ath *auth.Auth)
app/sdk/auth/auth_test.go:159
↓ 1 callersFunctiontest5
(ath *auth.Auth)
app/sdk/auth/auth_test.go:191
↓ 1 callersFunctiontest6
(ath *auth.Auth)
app/sdk/auth/auth_test.go:223
↓ 1 callersMethodtestEmbeddedByValue
()
app/domain/grpcauthapp/authapp_grpc.pb.go:111
↓ 1 callersFunctiontoAppAudit
(bus auditbus.Audit)
app/domain/auditapp/model.go:29
↓ 1 callersFunctiontoAppAudit
(bus auditbus.Audit)
api/services/sales/tests/auditapi/model_test.go:10
↓ 1 callersFunctiontoAppAudits
(audits []auditbus.Audit)
app/domain/auditapp/model.go:43
↓ 1 callersFunctiontoAppAudits
(audits []auditbus.Audit)
api/services/sales/tests/auditapi/model_test.go:24
↓ 1 callersFunctiontoAppHomePtr
(hme homebus.Home)
api/services/sales/tests/homeapi/model_test.go:37
↓ 1 callersFunctiontoAppHomes
(homes []homebus.Home)
app/domain/homeapp/model.go:59
↓ 1 callersFunctiontoAppHomes
(homes []homebus.Home)
api/services/sales/tests/homeapi/model_test.go:28
↓ 1 callersFunctiontoAppProduct
(prd vproductbus.Product)
app/domain/vproductapp/model.go:29
↓ 1 callersFunctiontoAppProduct
(prd productbus.Product)
app/domain/tranapp/model.go:36
↓ 1 callersFunctiontoAppProductPtr
(prd productbus.Product)
api/services/sales/tests/productapi/model_test.go:22
↓ 1 callersFunctiontoAppProducts
(prds []vproductbus.Product)
app/domain/vproductapp/model.go:42
↓ 1 callersFunctiontoAppProducts
(prds []productbus.Product)
app/domain/productapp/model.go:46
↓ 1 callersFunctiontoAppProducts
(prds []productbus.Product)
api/services/sales/tests/productapi/model_test.go:27
↓ 1 callersFunctiontoAppUserPtr
(bus userbus.User)
api/services/sales/tests/userapi/model_test.go:33
↓ 1 callersFunctiontoAppUsers
(users []userbus.User)
app/domain/userapp/model.go:47
↓ 1 callersFunctiontoAppUsers
(users []userbus.User)
api/services/sales/tests/userapi/model_test.go:24
↓ 1 callersFunctiontoAppVProduct
(usr userbus.User, prd productbus.Product)
api/services/sales/tests/vproductapi/model_test.go:11
↓ 1 callersFunctiontoBusAudit
(db audit)
business/domain/auditbus/stores/auditdb/model.go:43
↓ 1 callersFunctiontoBusAudits
(dbs []audit)
business/domain/auditbus/stores/auditdb/model.go:69
↓ 1 callersFunctiontoBusNewHome
(ctx context.Context, app NewHome)
app/domain/homeapp/model.go:91
↓ 1 callersFunctiontoBusNewProduct
(ctx context.Context, app NewProduct)
app/domain/productapp/model.go:69
↓ 1 callersFunctiontoBusNewProduct
(app NewProduct)
app/domain/tranapp/model.go:126
↓ 1 callersFunctiontoBusNewUser
(app NewUser)
app/domain/userapp/model.go:73
↓ 1 callersFunctiontoBusNewUser
(app NewUser)
app/domain/tranapp/model.go:74
↓ 1 callersFunctiontoBusProduct
(db productDB)
business/domain/vproductbus/stores/vproductdb/model.go:25
↓ 1 callersFunctiontoBusProducts
(dbPrds []productDB)
business/domain/vproductbus/stores/vproductdb/model.go:60
↓ 1 callersFunctiontoBusUpdateHome
(app UpdateHome)
app/domain/homeapp/model.go:147
↓ 1 callersFunctiontoBusUpdateProduct
(app UpdateProduct)
app/domain/productapp/model.go:120
↓ 1 callersFunctiontoBusUpdateUser
(app UpdateUser)
app/domain/userapp/model.go:168
↓ 1 callersFunctiontoBusUpdateUserRole
(app UpdateUserRole)
app/domain/userapp/model.go:128
↓ 1 callersFunctiontoBusUsers
(dbs []userDB)
business/domain/userbus/stores/userdb/model.go:77
↓ 1 callersFunctiontoDBAudit
(bus auditbus.Audit)
business/domain/auditbus/stores/auditdb/model.go:27
↓ 1 callersFunctiontoVProduct
=============================================================================
business/domain/vproductbus/vproduct_test.go:84
↓ 1 callersMethodtrackWork
(workKey string, cancel context.CancelFunc)
foundation/worker/worker.go:158
↓ 1 callersFunctionupdate
(busDomain dbtest.BusDomain, sd unittest.SeedData)
business/domain/productbus/productbus_test.go:215
↓ 1 callersFunctionupdate
(busDomain dbtest.BusDomain, sd unittest.SeedData)
business/domain/homebus/homebus_test.go:241
↓ 1 callersFunctionupdate
(busDomain dbtest.BusDomain, sd unittest.SeedData)
business/domain/userbus/userbus_test.go:227
↓ 1 callersMethodupdate
update pulls the metrics and publishes them to the specified system.
api/services/metrics/publisher/publisher.go:74
↓ 1 callersFunctionupdate200
(sd apitest.SeedData)
api/services/sales/tests/userapi/update_test.go:15
↓ 1 callersFunctionupdate200
(sd apitest.SeedData)
api/services/sales/tests/productapi/update_test.go:15
↓ 1 callersFunctionupdate200
(sd apitest.SeedData)
api/services/sales/tests/homeapi/update_test.go:15
↓ 1 callersFunctionupdate400
(sd apitest.SeedData)
api/services/sales/tests/userapi/update_test.go:90
↓ 1 callersFunctionupdate400
(sd apitest.SeedData)
api/services/sales/tests/productapi/update_test.go:55
↓ 1 callersFunctionupdate400
(sd apitest.SeedData)
api/services/sales/tests/homeapi/update_test.go:67
↓ 1 callersFunctionupdate401
(sd apitest.SeedData)
api/services/sales/tests/userapi/update_test.go:128
↓ 1 callersFunctionupdate401
(sd apitest.SeedData)
api/services/sales/tests/productapi/update_test.go:78
↓ 1 callersFunctionupdate401
(sd apitest.SeedData)
api/services/sales/tests/homeapi/update_test.go:90
↓ 1 callersMethodwriteCache
writeCache performs a safe write to the cache for the specified userbus.
business/domain/userbus/stores/usercache/usercache.go:160
FunctionArray
Array returns the optimal driver.Valuer and sql.Scanner for an array or slice of any dimension. For example: db.Query(`SELECT * FROM t WHERE id = A
business/sdk/sqldb/dbarray/dbarray.go:54
MethodAuthenticate
Authenticate finds a user by their email and verifies their password. On success it returns a Claims User representing this user. The claims can be us
business/domain/userbus/userbus.go:218
MethodAuthenticate
Authenticate does not apply auditing.
business/domain/userbus/extensions/useraudit/useraudit.go:131
MethodAuthenticate
Authenticate applies otel to the user authentication process.
business/domain/userbus/extensions/userotel/userotel.go:107
MethodAuthenticate
Authenticate validates a bearer token.
app/domain/grpcauthapp/authapp.go:77
MethodAuthenticate
(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption)
app/domain/grpcauthapp/authapp_grpc.pb.go:59
MethodAuthenticate
Authenticate a request using a bearer token.
app/domain/grpcauthapp/authapp_grpc.pb.go:88
MethodAuthenticate
(context.Context, *AuthenticateRequest)
app/domain/grpcauthapp/authapp_grpc.pb.go:104
MethodAuthenticate
Authenticate processes the token to validate the sender's token is valid.
app/sdk/auth/auth.go:103
MethodAuthenticate
Authenticate calls the auth service to authenticate the user.
app/sdk/authclient/http/authclient.go:73
MethodAuthenticate
Authenticate calls the auth service to authenticate the user.
app/sdk/authclient/grpc/authclient.go:56
MethodAuthorize
Authorize checks if a user is authorized for a specific rule.
app/domain/grpcauthapp/authapp.go:101
MethodAuthorize
(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption)
app/domain/grpcauthapp/authapp_grpc.pb.go:69
MethodAuthorize
Authorize a request based on user claims and a rule.
app/domain/grpcauthapp/authapp_grpc.pb.go:90
MethodAuthorize
(context.Context, *AuthorizeRequest)
app/domain/grpcauthapp/authapp_grpc.pb.go:107
MethodAuthorize
Authorize attempts to authorize the user with the provided input roles, if none of the input roles are within the user's claims, we return an error ot
app/sdk/auth/auth.go:154
MethodAuthorize
Authorize calls the auth service to authorize the user.
app/sdk/authclient/http/authclient.go:89
MethodAuthorize
Authorize calls the auth service to authorize the user.
app/sdk/authclient/grpc/authclient.go:71
MethodBegin
Begin implements the Beginner interface and returns a concrete value that implements the CommitRollbacker interface.
business/sdk/sqldb/tran.go:36
FunctionBoolPointer
BoolPointer is a helper to get a *bool from a bool. It is in the tests package because we normally don't want to deal with pointers to basic types but
business/sdk/dbtest/pointer.go:34
MethodBuild
()
app/domain/grpcauthapp/authapp.pb.go:91
MethodBuild
()
app/domain/grpcauthapp/authapp.pb.go:851
MethodClearClaims
()
app/domain/grpcauthapp/authapp.pb.go:646
MethodClearClaims
()
app/domain/grpcauthapp/authapp.pb.go:781
MethodClearExpiresAt
()
app/domain/grpcauthapp/authapp.pb.go:378
← previousnext →401–500 of 918, ranked by callers