Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ardanlabs/service
/ functions
Functions
918 in github.com/ardanlabs/service
⨍
Functions
918
◇
Types & classes
230
↓ 1 callers
Function
queryByID200
(sd apitest.SeedData)
api/services/sales/tests/productapi/query_test.go:79
↓ 1 callers
Function
queryByID200
(sd apitest.SeedData)
api/services/sales/tests/homeapi/query_test.go:79
↓ 1 callers
Function
quoteKey
quoteKey reports whether key is required to be quoted.
foundation/logger/debug.go:41
↓ 1 callers
Function
quoteValue
quoteValue reports whether value is required to be quoted.
foundation/logger/debug.go:46
↓ 1 callers
Method
registerDelegateFunctions
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 callers
Method
registerDelegateFunctions
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 callers
Function
registerPlugins
(app)
api/frontends/admin/src/plugins/index.js:13
↓ 1 callers
Method
removeWork
(workKey string)
foundation/worker/worker.go:165
↓ 1 callers
Function
run
(ctx context.Context, log *logger.Logger)
api/services/auth/main.go:55
↓ 1 callers
Function
run
(ctx context.Context, log *logger.Logger)
api/services/metrics/main.go:48
↓ 1 callers
Function
run
(ctx context.Context, log *logger.Logger)
api/services/sales/main.go:76
↓ 1 callers
Function
run
(log *logger.Logger)
api/tooling/admin/main.go:49
↓ 1 callers
Function
sanitize
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 callers
Function
sendDatadog
sendDatadog sends data to the datadog servers.
api/services/metrics/publisher/datadog/datadog.go:140
↓ 1 callers
Function
setHome
(ctx context.Context, hme homebus.Home)
app/sdk/mid/mid.go:106
↓ 1 callers
Function
setProduct
(ctx context.Context, prd productbus.Product)
app/sdk/mid/mid.go:92
↓ 1 callers
Function
setTraceID
(ctx context.Context, traceID string)
foundation/otel/context.go:20
↓ 1 callers
Function
setTracer
(ctx context.Context, tracer trace.Tracer)
foundation/otel/context.go:16
↓ 1 callers
Function
setTran
(ctx context.Context, tx sqldb.CommitRollbacker)
app/sdk/mid/mid.go:120
↓ 1 callers
Function
setUser
(ctx context.Context, usr userbus.User)
app/sdk/mid/mid.go:78
↓ 1 callers
Function
test1
(ath *auth.Auth)
app/sdk/auth/auth_test.go:35
↓ 1 callers
Function
test2
(ath *auth.Auth)
app/sdk/auth/auth_test.go:78
↓ 1 callers
Function
test3
(ath *auth.Auth)
app/sdk/auth/auth_test.go:126
↓ 1 callers
Function
test4
(ath *auth.Auth)
app/sdk/auth/auth_test.go:159
↓ 1 callers
Function
test5
(ath *auth.Auth)
app/sdk/auth/auth_test.go:191
↓ 1 callers
Function
test6
(ath *auth.Auth)
app/sdk/auth/auth_test.go:223
↓ 1 callers
Method
testEmbeddedByValue
()
app/domain/grpcauthapp/authapp_grpc.pb.go:111
↓ 1 callers
Function
toAppAudit
(bus auditbus.Audit)
app/domain/auditapp/model.go:29
↓ 1 callers
Function
toAppAudit
(bus auditbus.Audit)
api/services/sales/tests/auditapi/model_test.go:10
↓ 1 callers
Function
toAppAudits
(audits []auditbus.Audit)
app/domain/auditapp/model.go:43
↓ 1 callers
Function
toAppAudits
(audits []auditbus.Audit)
api/services/sales/tests/auditapi/model_test.go:24
↓ 1 callers
Function
toAppHomePtr
(hme homebus.Home)
api/services/sales/tests/homeapi/model_test.go:37
↓ 1 callers
Function
toAppHomes
(homes []homebus.Home)
app/domain/homeapp/model.go:59
↓ 1 callers
Function
toAppHomes
(homes []homebus.Home)
api/services/sales/tests/homeapi/model_test.go:28
↓ 1 callers
Function
toAppProduct
(prd vproductbus.Product)
app/domain/vproductapp/model.go:29
↓ 1 callers
Function
toAppProduct
(prd productbus.Product)
app/domain/tranapp/model.go:36
↓ 1 callers
Function
toAppProductPtr
(prd productbus.Product)
api/services/sales/tests/productapi/model_test.go:22
↓ 1 callers
Function
toAppProducts
(prds []vproductbus.Product)
app/domain/vproductapp/model.go:42
↓ 1 callers
Function
toAppProducts
(prds []productbus.Product)
app/domain/productapp/model.go:46
↓ 1 callers
Function
toAppProducts
(prds []productbus.Product)
api/services/sales/tests/productapi/model_test.go:27
↓ 1 callers
Function
toAppUserPtr
(bus userbus.User)
api/services/sales/tests/userapi/model_test.go:33
↓ 1 callers
Function
toAppUsers
(users []userbus.User)
app/domain/userapp/model.go:47
↓ 1 callers
Function
toAppUsers
(users []userbus.User)
api/services/sales/tests/userapi/model_test.go:24
↓ 1 callers
Function
toAppVProduct
(usr userbus.User, prd productbus.Product)
api/services/sales/tests/vproductapi/model_test.go:11
↓ 1 callers
Function
toBusAudit
(db audit)
business/domain/auditbus/stores/auditdb/model.go:43
↓ 1 callers
Function
toBusAudits
(dbs []audit)
business/domain/auditbus/stores/auditdb/model.go:69
↓ 1 callers
Function
toBusNewHome
(ctx context.Context, app NewHome)
app/domain/homeapp/model.go:91
↓ 1 callers
Function
toBusNewProduct
(ctx context.Context, app NewProduct)
app/domain/productapp/model.go:69
↓ 1 callers
Function
toBusNewProduct
(app NewProduct)
app/domain/tranapp/model.go:126
↓ 1 callers
Function
toBusNewUser
(app NewUser)
app/domain/userapp/model.go:73
↓ 1 callers
Function
toBusNewUser
(app NewUser)
app/domain/tranapp/model.go:74
↓ 1 callers
Function
toBusProduct
(db productDB)
business/domain/vproductbus/stores/vproductdb/model.go:25
↓ 1 callers
Function
toBusProducts
(dbPrds []productDB)
business/domain/vproductbus/stores/vproductdb/model.go:60
↓ 1 callers
Function
toBusUpdateHome
(app UpdateHome)
app/domain/homeapp/model.go:147
↓ 1 callers
Function
toBusUpdateProduct
(app UpdateProduct)
app/domain/productapp/model.go:120
↓ 1 callers
Function
toBusUpdateUser
(app UpdateUser)
app/domain/userapp/model.go:168
↓ 1 callers
Function
toBusUpdateUserRole
(app UpdateUserRole)
app/domain/userapp/model.go:128
↓ 1 callers
Function
toBusUsers
(dbs []userDB)
business/domain/userbus/stores/userdb/model.go:77
↓ 1 callers
Function
toDBAudit
(bus auditbus.Audit)
business/domain/auditbus/stores/auditdb/model.go:27
↓ 1 callers
Function
toVProduct
=============================================================================
business/domain/vproductbus/vproduct_test.go:84
↓ 1 callers
Method
trackWork
(workKey string, cancel context.CancelFunc)
foundation/worker/worker.go:158
↓ 1 callers
Function
update
(busDomain dbtest.BusDomain, sd unittest.SeedData)
business/domain/productbus/productbus_test.go:215
↓ 1 callers
Function
update
(busDomain dbtest.BusDomain, sd unittest.SeedData)
business/domain/homebus/homebus_test.go:241
↓ 1 callers
Function
update
(busDomain dbtest.BusDomain, sd unittest.SeedData)
business/domain/userbus/userbus_test.go:227
↓ 1 callers
Method
update
update pulls the metrics and publishes them to the specified system.
api/services/metrics/publisher/publisher.go:74
↓ 1 callers
Function
update200
(sd apitest.SeedData)
api/services/sales/tests/userapi/update_test.go:15
↓ 1 callers
Function
update200
(sd apitest.SeedData)
api/services/sales/tests/productapi/update_test.go:15
↓ 1 callers
Function
update200
(sd apitest.SeedData)
api/services/sales/tests/homeapi/update_test.go:15
↓ 1 callers
Function
update400
(sd apitest.SeedData)
api/services/sales/tests/userapi/update_test.go:90
↓ 1 callers
Function
update400
(sd apitest.SeedData)
api/services/sales/tests/productapi/update_test.go:55
↓ 1 callers
Function
update400
(sd apitest.SeedData)
api/services/sales/tests/homeapi/update_test.go:67
↓ 1 callers
Function
update401
(sd apitest.SeedData)
api/services/sales/tests/userapi/update_test.go:128
↓ 1 callers
Function
update401
(sd apitest.SeedData)
api/services/sales/tests/productapi/update_test.go:78
↓ 1 callers
Function
update401
(sd apitest.SeedData)
api/services/sales/tests/homeapi/update_test.go:90
↓ 1 callers
Method
writeCache
writeCache performs a safe write to the cache for the specified userbus.
business/domain/userbus/stores/usercache/usercache.go:160
Function
Array
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
Method
Authenticate
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
Method
Authenticate
Authenticate does not apply auditing.
business/domain/userbus/extensions/useraudit/useraudit.go:131
Method
Authenticate
Authenticate applies otel to the user authentication process.
business/domain/userbus/extensions/userotel/userotel.go:107
Method
Authenticate
Authenticate validates a bearer token.
app/domain/grpcauthapp/authapp.go:77
Method
Authenticate
(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption)
app/domain/grpcauthapp/authapp_grpc.pb.go:59
Method
Authenticate
Authenticate a request using a bearer token.
app/domain/grpcauthapp/authapp_grpc.pb.go:88
Method
Authenticate
(context.Context, *AuthenticateRequest)
app/domain/grpcauthapp/authapp_grpc.pb.go:104
Method
Authenticate
Authenticate processes the token to validate the sender's token is valid.
app/sdk/auth/auth.go:103
Method
Authenticate
Authenticate calls the auth service to authenticate the user.
app/sdk/authclient/http/authclient.go:73
Method
Authenticate
Authenticate calls the auth service to authenticate the user.
app/sdk/authclient/grpc/authclient.go:56
Method
Authorize
Authorize checks if a user is authorized for a specific rule.
app/domain/grpcauthapp/authapp.go:101
Method
Authorize
(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption)
app/domain/grpcauthapp/authapp_grpc.pb.go:69
Method
Authorize
Authorize a request based on user claims and a rule.
app/domain/grpcauthapp/authapp_grpc.pb.go:90
Method
Authorize
(context.Context, *AuthorizeRequest)
app/domain/grpcauthapp/authapp_grpc.pb.go:107
Method
Authorize
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
Method
Authorize
Authorize calls the auth service to authorize the user.
app/sdk/authclient/http/authclient.go:89
Method
Authorize
Authorize calls the auth service to authorize the user.
app/sdk/authclient/grpc/authclient.go:71
Method
Begin
Begin implements the Beginner interface and returns a concrete value that implements the CommitRollbacker interface.
business/sdk/sqldb/tran.go:36
Function
BoolPointer
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
Method
Build
()
app/domain/grpcauthapp/authapp.pb.go:91
Method
Build
()
app/domain/grpcauthapp/authapp.pb.go:851
Method
ClearClaims
()
app/domain/grpcauthapp/authapp.pb.go:646
Method
ClearClaims
()
app/domain/grpcauthapp/authapp.pb.go:781
Method
ClearExpiresAt
()
app/domain/grpcauthapp/authapp.pb.go:378
← previous
next →
401–500 of 918, ranked by callers