MCPcopy Create free account

hub / github.com/ardanlabs/service / functions

Functions918 in github.com/ardanlabs/service

MethodSetUserId
(v string)
app/domain/grpcauthapp/authapp.pb.go:597
MethodSetUserId
(v string)
app/domain/grpcauthapp/authapp.pb.go:741
MethodShouldSample
ShouldSample implements the sampler interface. It prevents the specified endpoints from being added to the trace.
foundation/otel/sampler.go:47
FunctionSortQuery
(s)
api/frontends/admin/src/components/DataTable/SortQuery.js:1
MethodStop
Stop turns off all the prometheus support.
api/services/metrics/publisher/prometheus/prometheus.go:64
MethodStop
Stop shuts down the service.
api/services/metrics/publisher/expvar/expvar.go:53
MethodString
String returns the value of the password.
business/types/password/password.go:15
MethodString
String returns the name of the role.
business/types/domain/domain.go:30
MethodString
String returns the name of the type.
business/types/home/home.go:29
MethodString
String returns the value of the name.
business/types/name/name.go:16
MethodString
String returns the value of the name.
business/types/name/name.go:72
MethodString
()
app/domain/grpcauthapp/authapp.pb.go:40
MethodString
()
app/domain/grpcauthapp/authapp.pb.go:119
MethodString
()
app/domain/grpcauthapp/authapp.pb.go:463
MethodString
()
app/domain/grpcauthapp/authapp.pb.go:545
MethodString
()
app/domain/grpcauthapp/authapp.pb.go:696
MethodString
()
app/domain/grpcauthapp/authapp.pb.go:828
FunctionTestName
(t *testing.T)
business/sdk/sqldb/dialect/dialect_test.go:40
FunctionTestPaginate
(t *testing.T)
business/sdk/sqldb/dialect/dialect_test.go:10
FunctionTest_Audit
(t *testing.T)
business/domain/auditbus/auditbus_test.go:22
FunctionTest_Audit
(t *testing.T)
api/services/sales/tests/auditapi/audit_test.go:9
FunctionTest_Auth
(t *testing.T)
app/sdk/auth/auth_test.go:17
FunctionTest_CancelWorker
(t *testing.T)
foundation/worker/worker_test.go:56
FunctionTest_Home
(t *testing.T)
business/domain/homebus/homebus_test.go:20
FunctionTest_Home
(t *testing.T)
api/services/sales/tests/homeapi/home_test.go:9
FunctionTest_Product
(t *testing.T)
business/domain/productbus/productbus_test.go:22
FunctionTest_Product
(t *testing.T)
api/services/sales/tests/productapi/product_test.go:9
FunctionTest_StopWorker
(t *testing.T)
foundation/worker/worker_test.go:94
FunctionTest_Tran
(t *testing.T)
api/services/sales/tests/tranapi/tran_test.go:9
FunctionTest_User
(t *testing.T)
business/domain/userbus/userbus_test.go:23
FunctionTest_User
(t *testing.T)
api/services/sales/tests/userapi/user_test.go:9
FunctionTest_VProduct
(t *testing.T)
business/domain/vproductbus/vproduct_test.go:20
FunctionTest_VProduct
(t *testing.T)
api/services/sales/tests/vproductapi/vproduct_test.go:9
FunctionTest_Worker
(t *testing.T)
foundation/worker/worker_test.go:12
MethodToken
Token generates a token for a given key ID.
app/domain/grpcauthapp/authapp.go:51
MethodToken
(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption)
app/domain/grpcauthapp/authapp_grpc.pb.go:49
MethodToken
Generate a token for a given key ID.
app/domain/grpcauthapp/authapp_grpc.pb.go:86
MethodToken
(context.Context, *TokenRequest)
app/domain/grpcauthapp/authapp_grpc.pb.go:101
MethodUnmarshalText
UnmarshalText implement the unmarshal interface for JSON conversions.
app/sdk/errs/errs.go:21
MethodUpdate
(ctx context.Context, prd Product)
business/domain/productbus/productbus.go:31
MethodUpdate
(ctx context.Context, prd Product, up UpdateProduct)
business/domain/productbus/productbus.go:44
MethodUpdate
Update modifies information about a product.
business/domain/productbus/productbus.go:138
MethodUpdate
Update modifies data about a productbus. It will error if the specified ID is invalid or does not reference an existing product.
business/domain/productbus/stores/productpg/productpg.go:74
MethodUpdate
Update modifies data about a product. SQLite does not require identifier quoting for any of these column names, so this statement reads slightly clean
business/domain/productbus/stores/productsqlite/productsqlite.go:85
MethodUpdate
Update applies otel to the product update process.
business/domain/productbus/extensions/productotel/productotel.go:49
MethodUpdate
(ctx context.Context, hme Home)
business/domain/homebus/homebus.go:30
MethodUpdate
(ctx context.Context, hme Home, uh UpdateHome)
business/domain/homebus/homebus.go:43
MethodUpdate
Update modifies information about a home.
business/domain/homebus/homebus.go:143
MethodUpdate
Update replaces a home document in the database.
business/domain/homebus/stores/homedb/homedb.go:86
MethodUpdate
Update applies otel to the home update process.
business/domain/homebus/extensions/homeotel/homeotel.go:49
MethodUpdate
(ctx context.Context, actorID uuid.UUID, usr User, uu UpdateUser)
business/domain/userbus/userbus.go:45
MethodUpdate
Update modifies information about a user.
business/domain/userbus/userbus.go:127
MethodUpdate
Update replaces a user document in the database.
business/domain/userbus/stores/usercache/usercache.go:69
MethodUpdate
Update replaces a user document in the database.
business/domain/userbus/stores/userdb/userdb.go:69
MethodUpdate
Update applies auditing to the user update process.
business/domain/userbus/extensions/useraudit/useraudit.go:64
MethodUpdate
Update applies otel to the user update process.
business/domain/userbus/extensions/userotel/userotel.go:50
MethodValue
Value returns the int value of the quantity.
business/types/quantity/quantity.go:14
MethodValue
Value implements the driver.Valuer interface.
business/sdk/sqldb/dbarray/dbarray.go:146
MethodValue
Value implements the driver.Valuer interface. It uses the "hex" format which is only supported on PostgreSQL 9.0 or newer.
business/sdk/sqldb/dbarray/dbarray.go:214
MethodValue
Value implements the driver.Valuer interface.
business/sdk/sqldb/dbarray/dbarray.go:284
MethodValue
Value implements the driver.Valuer interface.
business/sdk/sqldb/dbarray/dbarray.go:348
MethodValue
Value implements the driver.Valuer interface.
business/sdk/sqldb/dbarray/dbarray.go:497
MethodValue
Value implements the driver.Valuer interface.
business/sdk/sqldb/dbarray/dbarray.go:564
MethodValue
Value implements the driver.Valuer interface.
business/sdk/sqldb/dbarray/dbarray.go:627
MethodValue
Value implements the driver.Valuer interface.
business/sdk/sqldb/dbarray/dbarray.go:688
MethodWarnc
Warnc logs the information at the specified call stack position.
foundation/logger/logger.go:93
FunctionWithClient
WithClient adds a custom client for processing requests. It's recommend to not use the default client and provide your own.
app/sdk/authclient/http/authclient.go:66
FunctionWithGRPCConn
WithGRPCConn allows you to provide a pre-existing gRPC connection for the auth client.
app/sdk/authclient/grpc/authclient.go:48
MethodWithGroup
WithGroup returns a new Handler with the given group appended to the receiver's existing groups. The keys of all subsequent attributes, whether added
foundation/logger/handler.go:37
FunctionWithSkip
WithSkip can be used to skip running a test.
business/sdk/unittest/unittest.go:17
FunctionWithSkip
WithSkip can be used to skip running a test.
app/sdk/apitest/apitest.go:29
Function_Auth_Authenticate_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
app/domain/grpcauthapp/authapp_grpc.pb.go:149
Function_Auth_Authorize_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
app/domain/grpcauthapp/authapp_grpc.pb.go:167
Function_Auth_Token_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
app/domain/grpcauthapp/authapp_grpc.pb.go:131
MethodactionUserDeleted
actionUserDeleted is executed by the user domain indirectly when a user is deleted.
business/domain/productbus/event.go:22
MethodactionUserDeleted
actionUserDeleted is executed by the user domain indirectly when a user is deleted.
business/domain/homebus/event.go:22
MethodauthCallback
(ctx context.Context, r *http.Request)
app/domain/oauthapp/oauthapp.go:52
MethodauthInterceptor
=============================================================================
app/domain/grpcauthapp/authapp.go:148
Methodauthenticate
(ctx context.Context, r *http.Request)
app/domain/authapp/authapp.go:43
Methodauthenticate
(ctx context.Context, r *http.Request)
app/domain/oauthapp/oauthapp.go:46
Methodauthorize
(ctx context.Context, r *http.Request)
app/domain/authapp/authapp.go:60
Methodcreate
(ctx context.Context, r *http.Request)
app/domain/homeapp/homeapp.go:27
Methodcreate
(ctx context.Context, r *http.Request)
app/domain/productapp/productapp.go:27
Methodcreate
(ctx context.Context, r *http.Request)
app/domain/userapp/userapp.go:28
Methodcreate
(ctx context.Context, r *http.Request)
app/domain/tranapp/tranapp.go:54
Methoddelete
(ctx context.Context, _ *http.Request)
app/domain/homeapp/homeapp.go:70
Methoddelete
(ctx context.Context, _ *http.Request)
app/domain/productapp/productapp.go:70
Methoddelete
(ctx context.Context, _ *http.Request)
app/domain/userapp/userapp.go:98
Methodhandler
(w http.ResponseWriter, r *http.Request)
api/services/metrics/publisher/prometheus/prometheus.go:80
Methodhandler
handler is what consumers call to get the raw stats.
api/services/metrics/publisher/expvar/expvar.go:78
Functioninit
()
app/domain/grpcauthapp/authapp.pb.go:921
Functioninit
init constructs the metrics value that will be used to capture metrics. The metrics value is stored in a package level variable since everything insid
app/sdk/metrics/metrics.go:29
Functioninit
()
api/tooling/logfmt/main.go:18
Methodliveness
liveness returns simple status info if the service is alive. If the app is deployed to a Kubernetes cluster, it will also return pod, node, and namesp
app/domain/checkapp/checkapp.go:51
Methodlogout
(ctx context.Context, r *http.Request)
app/domain/oauthapp/oauthapp.go:83
Functionmain
()
api/services/auth/main.go:34
Functionmain
()
api/services/metrics/main.go:25
Functionmain
()
api/services/sales/main.go:55
Functionmain
()
api/tooling/logfmt/main.go:24
Functionmain
()
api/tooling/admin/main.go:38
← previousnext →801–900 of 918, ranked by callers