MCPcopy Create free account

hub / github.com/ardanlabs/service / functions

Functions918 in github.com/ardanlabs/service

↓ 2 callersFunctionexists
(name string, port string)
foundation/docker/docker.go:107
↓ 2 callersFunctionextractIPPort
(name string, port string)
foundation/docker/docker.go:121
↓ 2 callersFunctionnewRole
(role string)
business/types/role/role.go:22
↓ 2 callersFunctionnewType
(homeType string)
business/types/home/home.go:22
↓ 2 callersMethodopaPolicyEvaluation
opaPolicyEvaluation asks opa to evaluate the token against the specified token policy and public key.
app/sdk/auth/auth.go:170
↓ 2 callersFunctionparseArray
parseArray extracts the dimensions and elements of an array represented in text format. Only representations emitted by the backend are supported. Not
business/sdk/sqldb/dbarray/dbarray.go:806
↓ 2 callersMethodreadCache
readCache performs a safe search in the cache for the specified key.
business/domain/userbus/stores/usercache/usercache.go:137
↓ 2 callersMethodscanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:118
↓ 2 callersMethodscanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:192
↓ 2 callersMethodscanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:264
↓ 2 callersMethodscanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:326
↓ 2 callersMethodscanBytes
(src []byte, dv reflect.Value)
business/sdk/sqldb/dbarray/dbarray.go:443
↓ 2 callersMethodscanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:544
↓ 2 callersMethodscanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:605
↓ 2 callersMethodscanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:668
↓ 2 callersFunctionsetTracer
(ctx context.Context, tracer trace.Tracer)
foundation/web/context.go:18
↓ 2 callersFunctiontoAppHome
(hme homebus.Home)
api/services/sales/tests/homeapi/model_test.go:10
↓ 2 callersFunctiontoAppProduct
(prd productbus.Product)
api/services/sales/tests/productapi/model_test.go:10
↓ 2 callersFunctiontoAppUser
(bus userbus.User)
api/services/sales/tests/userapi/model_test.go:11
↓ 2 callersFunctiontoAppVProducts
(usr userbus.User, prds []productbus.Product)
api/services/sales/tests/vproductapi/model_test.go:24
↓ 2 callersFunctiontoBusHome
(db homeDB)
business/domain/homebus/stores/homedb/model.go:44
↓ 2 callersFunctiontoBusHomes
(dbs []homeDB)
business/domain/homebus/stores/homedb/model.go:69
↓ 2 callersFunctiontoDBHome
(bus homebus.Home)
business/domain/homebus/stores/homedb/model.go:26
↓ 2 callersFunctiontoPublicPEM
(privatePEM string)
foundation/keystore/keystore.go:163
↓ 2 callersFunctiontoVProducts
(usr userbus.User, prds []productbus.Product)
business/domain/vproductbus/vproduct_test.go:97
↓ 1 callersFunctionActionDeletedData
ActionDeletedData constructs the data for the deleted action.
business/domain/userbus/event.go:35
↓ 1 callersFunctionAddErrors
AddErrors increments the errors metric by 1.
app/sdk/metrics/metrics.go:70
↓ 1 callersFunctionAddGoroutines
AddGoroutines refreshes the goroutine metric.
app/sdk/metrics/metrics.go:48
↓ 1 callersFunctionAddPanics
AddPanics increments the panics metric by 1.
app/sdk/metrics/metrics.go:80
↓ 1 callersFunctionAddRequests
AddRequests increments the request metric by 1.
app/sdk/metrics/metrics.go:59
↓ 1 callersFunctionAddTraceToRequest
AddTraceToRequest adds the current trace id to the request so it can be delivered to the service being called.
foundation/otel/otel.go:125
↓ 1 callersFunctionAuthorizeHome
AuthorizeHome executes the specified role and extracts the specified home from the DB if a home id is specified in the call. Depending on the rule spe
app/sdk/mid/authorize.go:164
↓ 1 callersFunctionAuthorizeProduct
AuthorizeProduct executes the specified role and extracts the specified product from the DB if a product id is specified in the call. Depending on the
app/sdk/mid/authorize.go:110
↓ 1 callersFunctionBasic
Basic processes basic authentication logic.
app/sdk/mid/authen.go:87
↓ 1 callersFunctionBearer
Bearer processes JWT authentication logic.
app/sdk/mid/authen.go:47
↓ 1 callersFunctionBeginCommitRollback
BeginCommitRollback starts a transaction for the domain call.
app/sdk/mid/transaction.go:16
↓ 1 callersMethodBuild
()
app/domain/grpcauthapp/authapp.pb.go:170
↓ 1 callersMethodBuild
()
app/domain/grpcauthapp/authapp.pb.go:514
↓ 1 callersMethodBuild
()
app/domain/grpcauthapp/authapp.pb.go:660
↓ 1 callersMethodBuild
()
app/domain/grpcauthapp/authapp.pb.go:798
↓ 1 callersMethodCall
Call executes all functions registered for the specified domain and action. These functions are executed synchronously on the G making the call.
business/sdk/delegate/delegate.go:49
↓ 1 callersMethodCollect
()
api/services/metrics/publisher/publisher.go:22
↓ 1 callersMethodCreate
Create adds a new home to the system.
business/domain/homebus/homebus.go:107
↓ 1 callersMethodDebug
Debug logs at LevelDebug with the given context.
foundation/logger/logger.go:48
↓ 1 callersFunctionDumpContainerLogs
DumpContainerLogs outputs logs from the running docker container.
foundation/docker/docker.go:68
↓ 1 callersMethodEnableCORS
EnableCORS enables CORS preflight requests to work. It prevents the MethodNotAllowedHandler from being called.
foundation/web/web.go:115
↓ 1 callersMethodEnabled
Enabled reports whether the handler handles records at the given level. The handler ignores records whose level is lower.
foundation/logger/handler.go:24
↓ 1 callersFunctionErrors
Errors handles errors coming out of the call chain.
app/sdk/mid/errors.go:16
↓ 1 callersMethodFileServerReact
FileServerReact starts a file server based on the specified file system and directory inside that file system for a statically built react webapp.
foundation/web/web.go:204
↓ 1 callersFunctionGenKey
GenKey creates an x509 private/public key for auth tokens.
api/tooling/admin/commands/genkey.go:13
↓ 1 callersFunctionGenToken
GenToken generates a JWT for the specified user.
api/tooling/admin/commands/gentoken.go:22
↓ 1 callersMethodGetKid
()
app/domain/grpcauthapp/authapp.pb.go:58
↓ 1 callersMethodGetRule
()
app/domain/grpcauthapp/authapp.pb.go:731
↓ 1 callersMethodGetToken
()
app/domain/grpcauthapp/authapp.pb.go:137
↓ 1 callersFunctionGetTraceID
GetTraceID returns the trace id from the context.
foundation/otel/context.go:25
↓ 1 callersFunctionGetTran
GetTran retrieves the value that can manage a transaction.
app/sdk/mid/mid.go:125
↓ 1 callersMethodHTTPStatus
()
foundation/web/response.go:29
↓ 1 callersFunctionInjectTracing
InjectTracing initializes the request for tracing by writing otel related information into the response and saving the tracer and trace id in the cont
foundation/otel/otel.go:97
↓ 1 callersFunctionLogger
Logger writes information about the request to the logs.
app/sdk/mid/logging.go:16
↓ 1 callersFunctionMetrics
Metrics updates program counters.
app/sdk/mid/metrics.go:12
↓ 1 callersFunctionMoneyPointer
MoneyPointer is a helper to get a *Money from a float. It's in the tests package because we normally don't want to deal with pointers to basic types b
business/sdk/dbtest/pointer.go:57
↓ 1 callersFunctionNameNullPointer
NameNullPointer is a helper to get a *EmptyName from a string. It's in the tests package because we normally don't want to deal with pointers to basic
business/sdk/dbtest/pointer.go:49
↓ 1 callersFunctionNew
New constructs an Auth that can be used to talk with the auth service.
app/sdk/authclient/http/authclient.go:50
↓ 1 callersFunctionNew
New constructs an Auth that can be used to talk with the auth service.
app/sdk/authclient/grpc/authclient.go:25
↓ 1 callersFunctionNew
New creates a Publish for consuming and publishing metrics.
api/services/metrics/publisher/publisher.go:41
↓ 1 callersFunctionNew
New creates a Expvar for collection metrics.
api/services/metrics/collector/expvar.go:23
↓ 1 callersFunctionNewApp
NewApp creates an App value that handle a set of routes for the application.
foundation/web/web.go:46
↓ 1 callersFunctionNewBeginner
NewBeginner constructs a value that implements the beginner interface.
business/sdk/sqldb/tran.go:28
↓ 1 callersFunctionNewStdout
NewStdout initializes stdout for publishing metrics.
api/services/metrics/publisher/publisher.go:92
↓ 1 callersFunctionOtel
Otel starts the otel tracing and stores the trace id in the context.
app/sdk/mid/otel.go:13
↓ 1 callersFunctionPanics
Panics recovers from panics and converts the panic to an error so it is reported in Metrics and handled in Errors.
app/sdk/mid/panics.go:15
↓ 1 callersFunctionParseConfirmPointers
(pass *string, confirm *string)
business/types/password/password.go:67
↓ 1 callersFunctionPasswordPointer
PasswordPointer is a helper to get a *Password from a string. It's in the tests package because we normally don't want to deal with pointers to basic
business/sdk/dbtest/pointer.go:73
↓ 1 callersMethodPrivateKey
(kid string)
app/sdk/auth/auth.go:39
↓ 1 callersMethodPublicKey
(kid string)
app/sdk/auth/auth.go:40
↓ 1 callersFunctionQuantityPointer
QuantityPointer is a helper to get a *Quantity from an int. It's in the tests package because we normally don't want to deal with pointers to basic ty
business/sdk/dbtest/pointer.go:65
↓ 1 callersMethodQuery
Query retrieves a list of existing homes.
business/domain/homebus/homebus.go:193
↓ 1 callersMethodQueryByEmail
QueryByEmail finds the user by a specified user email.
business/domain/userbus/userbus.go:206
↓ 1 callersMethodQueryByID
QueryByID finds the home by the specified ID.
business/domain/homebus/homebus.go:208
↓ 1 callersMethodRawHandlerFunc
RawHandlerFunc sets a raw handler function for a given HTTP method and path pair to the application server mux.
foundation/web/web.go:174
↓ 1 callersFunctionRegisterAuthServer
(s grpc.ServiceRegistrar, srv AuthServer)
app/domain/grpcauthapp/authapp_grpc.pb.go:120
↓ 1 callersFunctionSeed
Seed runs the seed document defined in this package against db. The queries are run in a transaction and rolled back if any fail.
business/sdk/migrate/migrate.go:44
↓ 1 callersFunctionSet
Set sets the metrics data into the context.
app/sdk/metrics/metrics.go:43
↓ 1 callersFunctionStart
Start constructs the registers the auth app to the grpc server.
app/domain/grpcauthapp/start.go:23
↓ 1 callersFunctionStartContainer
StartContainer starts the specified container for running tests.
foundation/docker/docker.go:23
↓ 1 callersMethodStop
Stop is used to cancel an existing job that is running.
foundation/worker/worker.go:143
↓ 1 callersFunctionStopContainer
StopContainer stops and removes the specified container.
foundation/docker/docker.go:55
↓ 1 callersMethodString
String returns the value of the quantity.
business/types/quantity/quantity.go:19
↓ 1 callersMethodString
String returns the name of the role.
business/types/role/role.go:29
↓ 1 callersMethodString
String returns the value of the money.
business/types/money/money.go:19
↓ 1 callersMethodString
String implements the Stringer interface.
business/sdk/delegate/model.go:19
↓ 1 callersFunctionTestGenerateNewHomes
TestGenerateNewHomes is a helper method for testing.
business/domain/homebus/testutil.go:13
↓ 1 callersFunctionTestGenerateNewProducts
TestGenerateNewProducts is a helper method for testing.
business/domain/productbus/testutil.go:15
↓ 1 callersFunctionTestNewAudits
TestNewAudits is a helper method for testing.
business/domain/auditbus/testutil.go:14
↓ 1 callersFunctionTestNewUsers
TestNewUsers is a helper method for testing.
business/domain/userbus/testutil.go:16
↓ 1 callersFunctionToSQLNullString
ToSQLNullString converts a Null value to a sql NullString.
business/types/name/name.go:64
↓ 1 callersFunctionUserAdd
UserAdd adds new users into the database.
api/tooling/admin/commands/useradd.go:20
↓ 1 callersFunctionUsers
Users retrieves all users from the database.
api/tooling/admin/commands/users.go:18
↓ 1 callersMethodValidate
()
foundation/web/request.go:20
↓ 1 callersMethodWithAttrs
WithAttrs returns a new JSONHandler whose attributes consists of h's attributes followed by attrs.
foundation/logger/handler.go:30
← previousnext →201–300 of 918, ranked by callers