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
↓ 2 callers
Function
exists
(name string, port string)
foundation/docker/docker.go:107
↓ 2 callers
Function
extractIPPort
(name string, port string)
foundation/docker/docker.go:121
↓ 2 callers
Function
newRole
(role string)
business/types/role/role.go:22
↓ 2 callers
Function
newType
(homeType string)
business/types/home/home.go:22
↓ 2 callers
Method
opaPolicyEvaluation
opaPolicyEvaluation asks opa to evaluate the token against the specified token policy and public key.
app/sdk/auth/auth.go:170
↓ 2 callers
Function
parseArray
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 callers
Method
readCache
readCache performs a safe search in the cache for the specified key.
business/domain/userbus/stores/usercache/usercache.go:137
↓ 2 callers
Method
scanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:118
↓ 2 callers
Method
scanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:192
↓ 2 callers
Method
scanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:264
↓ 2 callers
Method
scanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:326
↓ 2 callers
Method
scanBytes
(src []byte, dv reflect.Value)
business/sdk/sqldb/dbarray/dbarray.go:443
↓ 2 callers
Method
scanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:544
↓ 2 callers
Method
scanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:605
↓ 2 callers
Method
scanBytes
(src []byte)
business/sdk/sqldb/dbarray/dbarray.go:668
↓ 2 callers
Function
setTracer
(ctx context.Context, tracer trace.Tracer)
foundation/web/context.go:18
↓ 2 callers
Function
toAppHome
(hme homebus.Home)
api/services/sales/tests/homeapi/model_test.go:10
↓ 2 callers
Function
toAppProduct
(prd productbus.Product)
api/services/sales/tests/productapi/model_test.go:10
↓ 2 callers
Function
toAppUser
(bus userbus.User)
api/services/sales/tests/userapi/model_test.go:11
↓ 2 callers
Function
toAppVProducts
(usr userbus.User, prds []productbus.Product)
api/services/sales/tests/vproductapi/model_test.go:24
↓ 2 callers
Function
toBusHome
(db homeDB)
business/domain/homebus/stores/homedb/model.go:44
↓ 2 callers
Function
toBusHomes
(dbs []homeDB)
business/domain/homebus/stores/homedb/model.go:69
↓ 2 callers
Function
toDBHome
(bus homebus.Home)
business/domain/homebus/stores/homedb/model.go:26
↓ 2 callers
Function
toPublicPEM
(privatePEM string)
foundation/keystore/keystore.go:163
↓ 2 callers
Function
toVProducts
(usr userbus.User, prds []productbus.Product)
business/domain/vproductbus/vproduct_test.go:97
↓ 1 callers
Function
ActionDeletedData
ActionDeletedData constructs the data for the deleted action.
business/domain/userbus/event.go:35
↓ 1 callers
Function
AddErrors
AddErrors increments the errors metric by 1.
app/sdk/metrics/metrics.go:70
↓ 1 callers
Function
AddGoroutines
AddGoroutines refreshes the goroutine metric.
app/sdk/metrics/metrics.go:48
↓ 1 callers
Function
AddPanics
AddPanics increments the panics metric by 1.
app/sdk/metrics/metrics.go:80
↓ 1 callers
Function
AddRequests
AddRequests increments the request metric by 1.
app/sdk/metrics/metrics.go:59
↓ 1 callers
Function
AddTraceToRequest
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 callers
Function
AuthorizeHome
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 callers
Function
AuthorizeProduct
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 callers
Function
Basic
Basic processes basic authentication logic.
app/sdk/mid/authen.go:87
↓ 1 callers
Function
Bearer
Bearer processes JWT authentication logic.
app/sdk/mid/authen.go:47
↓ 1 callers
Function
BeginCommitRollback
BeginCommitRollback starts a transaction for the domain call.
app/sdk/mid/transaction.go:16
↓ 1 callers
Method
Build
()
app/domain/grpcauthapp/authapp.pb.go:170
↓ 1 callers
Method
Build
()
app/domain/grpcauthapp/authapp.pb.go:514
↓ 1 callers
Method
Build
()
app/domain/grpcauthapp/authapp.pb.go:660
↓ 1 callers
Method
Build
()
app/domain/grpcauthapp/authapp.pb.go:798
↓ 1 callers
Method
Call
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 callers
Method
Collect
()
api/services/metrics/publisher/publisher.go:22
↓ 1 callers
Method
Create
Create adds a new home to the system.
business/domain/homebus/homebus.go:107
↓ 1 callers
Method
Debug
Debug logs at LevelDebug with the given context.
foundation/logger/logger.go:48
↓ 1 callers
Function
DumpContainerLogs
DumpContainerLogs outputs logs from the running docker container.
foundation/docker/docker.go:68
↓ 1 callers
Method
EnableCORS
EnableCORS enables CORS preflight requests to work. It prevents the MethodNotAllowedHandler from being called.
foundation/web/web.go:115
↓ 1 callers
Method
Enabled
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 callers
Function
Errors
Errors handles errors coming out of the call chain.
app/sdk/mid/errors.go:16
↓ 1 callers
Method
FileServerReact
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 callers
Function
GenKey
GenKey creates an x509 private/public key for auth tokens.
api/tooling/admin/commands/genkey.go:13
↓ 1 callers
Function
GenToken
GenToken generates a JWT for the specified user.
api/tooling/admin/commands/gentoken.go:22
↓ 1 callers
Method
GetKid
()
app/domain/grpcauthapp/authapp.pb.go:58
↓ 1 callers
Method
GetRule
()
app/domain/grpcauthapp/authapp.pb.go:731
↓ 1 callers
Method
GetToken
()
app/domain/grpcauthapp/authapp.pb.go:137
↓ 1 callers
Function
GetTraceID
GetTraceID returns the trace id from the context.
foundation/otel/context.go:25
↓ 1 callers
Function
GetTran
GetTran retrieves the value that can manage a transaction.
app/sdk/mid/mid.go:125
↓ 1 callers
Method
HTTPStatus
()
foundation/web/response.go:29
↓ 1 callers
Function
InjectTracing
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 callers
Function
Logger
Logger writes information about the request to the logs.
app/sdk/mid/logging.go:16
↓ 1 callers
Function
Metrics
Metrics updates program counters.
app/sdk/mid/metrics.go:12
↓ 1 callers
Function
MoneyPointer
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 callers
Function
NameNullPointer
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 callers
Function
New
New constructs an Auth that can be used to talk with the auth service.
app/sdk/authclient/http/authclient.go:50
↓ 1 callers
Function
New
New constructs an Auth that can be used to talk with the auth service.
app/sdk/authclient/grpc/authclient.go:25
↓ 1 callers
Function
New
New creates a Publish for consuming and publishing metrics.
api/services/metrics/publisher/publisher.go:41
↓ 1 callers
Function
New
New creates a Expvar for collection metrics.
api/services/metrics/collector/expvar.go:23
↓ 1 callers
Function
NewApp
NewApp creates an App value that handle a set of routes for the application.
foundation/web/web.go:46
↓ 1 callers
Function
NewBeginner
NewBeginner constructs a value that implements the beginner interface.
business/sdk/sqldb/tran.go:28
↓ 1 callers
Function
NewStdout
NewStdout initializes stdout for publishing metrics.
api/services/metrics/publisher/publisher.go:92
↓ 1 callers
Function
Otel
Otel starts the otel tracing and stores the trace id in the context.
app/sdk/mid/otel.go:13
↓ 1 callers
Function
Panics
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 callers
Function
ParseConfirmPointers
(pass *string, confirm *string)
business/types/password/password.go:67
↓ 1 callers
Function
PasswordPointer
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 callers
Method
PrivateKey
(kid string)
app/sdk/auth/auth.go:39
↓ 1 callers
Method
PublicKey
(kid string)
app/sdk/auth/auth.go:40
↓ 1 callers
Function
QuantityPointer
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 callers
Method
Query
Query retrieves a list of existing homes.
business/domain/homebus/homebus.go:193
↓ 1 callers
Method
QueryByEmail
QueryByEmail finds the user by a specified user email.
business/domain/userbus/userbus.go:206
↓ 1 callers
Method
QueryByID
QueryByID finds the home by the specified ID.
business/domain/homebus/homebus.go:208
↓ 1 callers
Method
RawHandlerFunc
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 callers
Function
RegisterAuthServer
(s grpc.ServiceRegistrar, srv AuthServer)
app/domain/grpcauthapp/authapp_grpc.pb.go:120
↓ 1 callers
Function
Seed
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 callers
Function
Set
Set sets the metrics data into the context.
app/sdk/metrics/metrics.go:43
↓ 1 callers
Function
Start
Start constructs the registers the auth app to the grpc server.
app/domain/grpcauthapp/start.go:23
↓ 1 callers
Function
StartContainer
StartContainer starts the specified container for running tests.
foundation/docker/docker.go:23
↓ 1 callers
Method
Stop
Stop is used to cancel an existing job that is running.
foundation/worker/worker.go:143
↓ 1 callers
Function
StopContainer
StopContainer stops and removes the specified container.
foundation/docker/docker.go:55
↓ 1 callers
Method
String
String returns the value of the quantity.
business/types/quantity/quantity.go:19
↓ 1 callers
Method
String
String returns the name of the role.
business/types/role/role.go:29
↓ 1 callers
Method
String
String returns the value of the money.
business/types/money/money.go:19
↓ 1 callers
Method
String
String implements the Stringer interface.
business/sdk/delegate/model.go:19
↓ 1 callers
Function
TestGenerateNewHomes
TestGenerateNewHomes is a helper method for testing.
business/domain/homebus/testutil.go:13
↓ 1 callers
Function
TestGenerateNewProducts
TestGenerateNewProducts is a helper method for testing.
business/domain/productbus/testutil.go:15
↓ 1 callers
Function
TestNewAudits
TestNewAudits is a helper method for testing.
business/domain/auditbus/testutil.go:14
↓ 1 callers
Function
TestNewUsers
TestNewUsers is a helper method for testing.
business/domain/userbus/testutil.go:16
↓ 1 callers
Function
ToSQLNullString
ToSQLNullString converts a Null value to a sql NullString.
business/types/name/name.go:64
↓ 1 callers
Function
UserAdd
UserAdd adds new users into the database.
api/tooling/admin/commands/useradd.go:20
↓ 1 callers
Function
Users
Users retrieves all users from the database.
api/tooling/admin/commands/users.go:18
↓ 1 callers
Method
Validate
()
foundation/web/request.go:20
↓ 1 callers
Method
WithAttrs
WithAttrs returns a new JSONHandler whose attributes consists of h's attributes followed by attrs.
foundation/logger/handler.go:30
← previous
next →
201–300 of 918, ranked by callers