MCPcopy Create free account

hub / github.com/ardanlabs/service / functions

Functions918 in github.com/ardanlabs/service

↓ 4 callersFunctiondelete
(busDomain dbtest.BusDomain, sd unittest.SeedData)
business/domain/homebus/homebus_test.go:298
↓ 4 callersFunctiontoAppHome
(hme homebus.Home)
app/domain/homeapp/model.go:41
↓ 4 callersFunctiontoAppProduct
(prd productbus.Product)
app/domain/productapp/model.go:34
↓ 4 callersFunctiontoRecord
(r slog.Record)
foundation/logger/model.go:28
↓ 4 callersFunctionwrapMiddleware
wrapMiddleware creates a new handler by wrapping middleware around a final handler. The middlewares' Handlers will be executed by requests in the orde
foundation/web/middleware.go:11
↓ 4 callersMethodwriteOrInvalidate
writeOrInvalidate populates the cache outside a transaction, but only invalidates the entry while inside one. A transactional write is not yet committ
business/domain/userbus/stores/usercache/usercache.go:150
↓ 3 callersMethodAuthenticate
Authenticate a request using a bearer token.
app/domain/grpcauthapp/authapp_grpc.pb.go:36
↓ 3 callersMethodBuildInfo
BuildInfo logs information stored inside the Go binary.
foundation/logger/debug.go:11
↓ 3 callersFunctionFloatPointer
FloatPointer is a helper to get a *float64 from a float64. It is in the tests package because we normally don't want to deal with pointers to basic ty
business/sdk/dbtest/pointer.go:27
↓ 3 callersFunctionGetHome
GetHome returns the home from the context.
app/sdk/mid/mid.go:111
↓ 3 callersFunctionGetProduct
GetProduct returns the product from the context.
app/sdk/mid/mid.go:97
↓ 3 callersMethodHandle
Handle looks to see if an event function needs to be executed for a given log level and then formats its argument Record.
foundation/logger/handler.go:43
↓ 3 callersFunctionIntPointer
IntPointer is a helper to get a *int from a int. It is in the tests package because we normally don't want to deal with pointers to basic types but it
business/sdk/dbtest/pointer.go:20
↓ 3 callersFunctionMux
Mux registers all the debug routes from the standard library into a new mux bypassing the use of the DefaultServerMux. Using the DefaultServerMux woul
app/sdk/debug/debug.go:16
↓ 3 callersFunctionNew
New constructs a delegate for indirect api access.
business/sdk/delegate/delegate.go:27
↓ 3 callersFunctionNew
New constructs a new log for application use.
foundation/logger/logger.go:27
↓ 3 callersFunctionNew
New constructs a Worker for managing and executing jobs. The capacity value represents the maximum number of G's that can be executing at any given ti
foundation/worker/worker.go:28
↓ 3 callersFunctionNewBusiness
NewBusiness constructs a product business API for use.
business/domain/productbus/productbus.go:66
↓ 3 callersFunctionNewBusiness
NewBusiness constructs a home business API for use.
business/domain/homebus/homebus.go:65
↓ 3 callersFunctionNewNoResponse
NewNoResponse constructs a no response value.
foundation/web/response.go:17
↓ 3 callersFunctionNewStore
NewStore constructs the api for data and caching access.
business/domain/userbus/stores/usercache/usercache.go:27
↓ 3 callersFunctionNewWithEvents
NewWithEvents constructs a new log for application use with events.
foundation/logger/logger.go:32
↓ 3 callersMethodPaginate
Paginate appends a pagination clause to buf. The clause must consume the named bind variables ":offset" and ":rows_per_page" already supplied by the c
business/sdk/sqldb/dialect/dialect.go:22
↓ 3 callersFunctionParse
============================================================================= Parse parses the string value and returns a role if one exists.
business/types/domain/domain.go:47
↓ 3 callersFunctionParseConfirm
(pass string, confirm string)
business/types/password/password.go:54
↓ 3 callersMethodStop
Stop is used to shut down the goroutine collecting metrics.
api/services/metrics/publisher/publisher.go:68
↓ 3 callersFunctionToBusProduct
ToBusProduct converts a database row into a business product, parsing and validating the typed fields.
business/domain/productbus/stores/commondb/model.go:50
↓ 3 callersFunctionint64ToND
(in int64)
app/domain/grpcauthapp/authapp.go:199
↓ 3 callersFunctionint64ToND
(in int64)
app/sdk/authclient/grpc/model.go:67
↓ 3 callersFunctionnamedQuerySlice
(ctx context.Context, log *logger.Logger, db sqlx.ExtContext, query string, data any, dest *[]T, withIn bool)
business/sdk/sqldb/sqldb.go:174
↓ 3 callersFunctionnamedQueryStruct
(ctx context.Context, log *logger.Logger, db sqlx.ExtContext, query string, data any, dest any, withIn bool)
business/sdk/sqldb/sqldb.go:250
↓ 3 callersFunctionnewDomain
(domain string)
business/types/domain/domain.go:23
↓ 3 callersFunctionqueryString
queryString provides a pretty print version of the query and parameters.
business/sdk/sqldb/sqldb.go:306
↓ 3 callersFunctionsetClaims
(ctx context.Context, claims auth.Claims)
app/sdk/mid/mid.go:39
↓ 3 callersFunctionsetUserID
(ctx context.Context, userID uuid.UUID)
app/sdk/mid/mid.go:64
↓ 3 callersFunctionsetWriter
(ctx context.Context, w http.ResponseWriter)
foundation/web/context.go:34
↓ 3 callersFunctiontoBusUser
(db userDB)
business/domain/userbus/stores/userdb/model.go:42
↓ 3 callersFunctiontoDBUser
(bus userbus.User)
business/domain/userbus/stores/userdb/model.go:28
↓ 2 callersMethodAuthenticate
(ctx context.Context, email mail.Address, password string)
business/domain/userbus/userbus.go:51
↓ 2 callersFunctionAuthorizeUser
AuthorizeUser executes the specified role and extracts the specified user from the DB if a user id is specified in the call. Depending on the rule spe
app/sdk/mid/authorize.go:57
↓ 2 callersMethodBegin
()
business/sdk/sqldb/tran.go:11
↓ 2 callersMethodBuild
()
app/domain/grpcauthapp/authapp.pb.go:413
↓ 2 callersMethodCommit
()
business/sdk/sqldb/tran.go:16
↓ 2 callersMethodDelimiter
Delimiter returns the delimiter character(s) for this element's type.
business/sdk/sqldb/dbarray/dbarray.go:97
↓ 2 callersMethodEqual
Equal provides support for the go-cmp package and testing.
business/types/home/home.go:34
↓ 2 callersMethodFileServer
FileServer starts a file server based on the specified file system and directory inside that file system.
foundation/web/web.go:238
↓ 2 callersMethodGetAudience
()
app/domain/grpcauthapp/authapp.pb.go:243
↓ 2 callersMethodGetClaims
()
app/domain/grpcauthapp/authapp.pb.go:724
↓ 2 callersMethodGetExpiresAt
()
app/domain/grpcauthapp/authapp.pb.go:250
↓ 2 callersMethodGetId
()
app/domain/grpcauthapp/authapp.pb.go:271
↓ 2 callersMethodGetIssuedAt
()
app/domain/grpcauthapp/authapp.pb.go:264
↓ 2 callersMethodGetIssuer
()
app/domain/grpcauthapp/authapp.pb.go:223
↓ 2 callersMethodGetNotBefore
()
app/domain/grpcauthapp/authapp.pb.go:257
↓ 2 callersMethodGetRoles
()
app/domain/grpcauthapp/authapp.pb.go:281
↓ 2 callersMethodGetSubject
()
app/domain/grpcauthapp/authapp.pb.go:233
↓ 2 callersMethodGetUserId
()
app/domain/grpcauthapp/authapp.pb.go:714
↓ 2 callersFunctionHandleAuthentication
(ctx context.Context, ath *auth.Auth, authorizationHeader string)
app/sdk/mid/authen.go:65
↓ 2 callersFunctionHandleAuthorization
(ctx context.Context, authorizationHeader string, userBus userbus.ExtBusiness, ath *auth.Auth)
app/sdk/mid/authen.go:105
↓ 2 callersMethodHandlerFuncNoMid
HandlerFuncNoMid sets a handler function for a given HTTP method and path pair to the application server mux. Does not include the application middlew
foundation/web/web.go:122
↓ 2 callersFunctionInitTracing
InitTracing configures open telemetry to be used with the service.
foundation/otel/otel.go:34
↓ 2 callersMethodLoadByFileSystem
LoadByFileSystem loads a set of RSA PEM files rooted inside of a directory. The name of each PEM file will be used as the key id. The function also re
foundation/keystore/keystore.go:82
↓ 2 callersMethodLoadByJSON
LoadByJSON is given a JSON document read with two fields, key and pem (private key).
foundation/keystore/keystore.go:47
↓ 2 callersFunctionMigrate
Migrate attempts to bring the database up to date with the migrations defined in this package.
business/sdk/migrate/migrate.go:28
↓ 2 callersFunctionMigrate
Migrate creates the schema in the database.
api/tooling/admin/commands/migrate.go:17
↓ 2 callersFunctionNew
New constructs an empty KeyStore ready for use.
foundation/keystore/keystore.go:39
↓ 2 callersFunctionNewAuthClient
(cc grpc.ClientConnInterface)
app/domain/grpcauthapp/authapp_grpc.pb.go:45
↓ 2 callersFunctionNewBusiness
NewBusiness constructs a vproduct business API for use.
business/domain/vproductbus/vproductbus.go:36
↓ 2 callersFunctionNewBusiness
NewBusiness constructs a audit business API for use.
business/domain/auditbus/auditbus.go:43
↓ 2 callersFunctionNewExtension
NewExtension constructs a new extension that wraps the vproductbus with otel.
business/domain/vproductbus/extensions/vproductotel/vproductotel.go:20
↓ 2 callersFunctionNewExtension
NewExtension constructs a new extension that wraps the productbus with otel.
business/domain/productbus/extensions/productotel/productotel.go:22
↓ 2 callersFunctionNewExtension
NewExtension constructs a new extension that wraps the homebus with otel.
business/domain/homebus/extensions/homeotel/homeotel.go:22
↓ 2 callersFunctionNewExtension
NewExtension constructs a new extension that wraps the userbus with audit.
business/domain/userbus/extensions/useraudit/useraudit.go:25
↓ 2 callersFunctionNewExtension
NewExtension constructs a new extension that wraps the userbus with otel.
business/domain/userbus/extensions/userotel/userotel.go:23
↓ 2 callersFunctionNewExtension
NewExtension constructs a new extension that wraps the auditbus with otel.
business/domain/auditbus/extensions/auditotel/auditotel.go:20
↓ 2 callersFunctionNewStore
NewStore constructs the api for data access.
business/domain/vproductbus/stores/vproductdb/vproductdb.go:24
↓ 2 callersFunctionNewStore
NewStore constructs the api for data access.
business/domain/productbus/stores/productpg/productpg.go:32
↓ 2 callersFunctionNewStore
NewStore constructs the api for data access.
business/domain/homebus/stores/homedb/homedb.go:26
↓ 2 callersFunctionNewStore
NewStore constructs the API for data access.
business/domain/auditbus/stores/auditdb/auditdb.go:24
↓ 2 callersFunctionOrderByClause
OrderByClause builds an ORDER BY clause for the given ordering. It returns an error if the field is not in OrderByFields.
business/domain/productbus/stores/commondb/order.go:22
↓ 2 callersFunctionParse
Parse parses the string value and returns a password if the value complies with the rules for a password.
business/types/password/password.go:35
↓ 2 callersFunctionParse
============================================================================= Parse parses the string value and returns a role if one exists.
business/types/role/role.go:46
↓ 2 callersMethodReset
()
app/domain/grpcauthapp/authapp.pb.go:198
↓ 2 callersFunctionRespond
Respond sends a response to the client.
foundation/web/response.go:33
↓ 2 callersMethodRollback
()
business/sdk/sqldb/tran.go:17
↓ 2 callersFunctionSeed
Seed loads test data into the database.
api/tooling/admin/commands/seed.go:13
↓ 2 callersMethodServeHTTP
ServeHTTP implements the http.Handler interface. It's the entry point for all http traffic and allows the opentelemetry mux to run first to handle tra
foundation/web/web.go:69
↓ 2 callersFunctionTestSeedAudits
TestSeedAudits is a helper method for testing.
business/domain/auditbus/testutil.go:38
↓ 2 callersMethodToken
Generate a token for a given key ID.
app/domain/grpcauthapp/authapp_grpc.pb.go:34
↓ 2 callersMethodWarn
Warn logs at LevelWarn with the given context.
foundation/logger/logger.go:84
↓ 2 callersFunctionWithCORS
WithCORS provides configuration options for CORS.
app/sdk/mux/mux.go:38
↓ 2 callersFunctionappendArray
appendArray appends rv to the buffer, returning the extended buffer and the delimiter used between elements. It panics when n <= 0 or rv's Kind is no
business/sdk/sqldb/dbarray/dbarray.go:715
↓ 2 callersFunctionappendArrayElement
appendArrayElement appends rv to the buffer, returning the extended buffer and the delimiter to use before the next element. When rv's Kind is neithe
business/sdk/sqldb/dbarray/dbarray.go:743
↓ 2 callersFunctionapplyFilter
(filter userbus.QueryFilter, data map[string]any, buf *bytes.Buffer)
business/domain/userbus/stores/userdb/filter.go:11
↓ 2 callersFunctionapplyFilter
(filter auditbus.QueryFilter, data map[string]any, buf *bytes.Buffer)
business/domain/auditbus/stores/auditdb/filter.go:11
↓ 2 callersMethodapplyFilter
(filter vproductbus.QueryFilter, data map[string]any, buf *bytes.Buffer)
business/domain/vproductbus/stores/vproductdb/filter.go:11
↓ 2 callersMethodapplyFilter
(filter homebus.QueryFilter, data map[string]any, buf *bytes.Buffer)
business/domain/homebus/stores/homedb/filter.go:10
↓ 2 callersFunctiondeepCopyMap
(source map[string]any)
api/services/metrics/publisher/prometheus/prometheus.go:98
↓ 2 callersMethoddeleteCache
deleteCache performs a safe removal from the cache for the specified userbus.
business/domain/userbus/stores/usercache/usercache.go:166
↓ 2 callersMethoddo
(ctx context.Context, method string, endpoint string, headers map[string]string, body any, v any)
app/sdk/authclient/http/authclient.go:99
↓ 2 callersFunctionencodeBytea
(serverVersion int, v []byte)
business/sdk/sqldb/dbarray/encode.go:214
← previousnext →101–200 of 918, ranked by callers