Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dante-gpu/dantegpu-core
/ functions
Functions
1,089 in github.com/dante-gpu/dantegpu-core
⨍
Functions
1,089
◇
Types & classes
368
↓ 665 callers
Method
Error
Error implements the error interface
services/billing-payment-service/internal/models/errors.go:96
↓ 610 callers
Method
String
String returns the string representation of JobStatus
cmd/provider/main.go:537
↓ 168 callers
Method
String
String returns a human-readable string representation of the TaskStatusUpdate.
clients/provider-daemon/internal/models/status.go:52
↓ 126 callers
Method
Close
Close is called to release any resources held by the store, like DB connections.
services/scheduler-orchestrator-service/internal/store/jobstore.go:38
↓ 125 callers
Function
respondError
(w http.ResponseWriter, status int, message string)
services/auth-service/internal/handlers/registration.go:554
↓ 119 callers
Function
append
(batch: LogLine[])
clients/console/src/hooks/useLogSocket.ts:41
↓ 102 callers
Method
Get
Get retrieves a session by ID
services/auth-service/internal/session/redis_store.go:72
↓ 94 callers
Method
Scan
Scan implements the sql.Scanner interface for JobDetailsDB. This tells the SQL driver how to read the JobDetailsDB struct from the database.
services/scheduler-orchestrator-service/internal/models/job_record.go:22
↓ 60 callers
Method
Error
Error implements the error interface
services/provider-registry-service/internal/errors/errors.go:44
↓ 55 callers
Method
Add
Add adds a token to the blacklist
services/auth-service/internal/session/redis_store.go:324
↓ 45 callers
Function
writeErrorResponse
writeErrorResponse writes an error response
services/billing-payment-service/internal/handlers/wallet.go:255
↓ 37 callers
Function
meta
(pub solana.PublicKey, writable, signer bool)
services/billing-payment-service/internal/covenant/onchain.go:190
↓ 29 callers
Function
cn
(...inputs: ClassValue[])
clients/console/src/lib/cn.ts:5
↓ 26 callers
Method
ServeHTTP
ServeHTTP handles incoming requests and proxies them to the appropriate backend service.
services/api-gateway/internal/handlers/proxy.go:37
↓ 24 callers
Method
Duration
Duration returns the duration of the session
services/billing-payment-service/internal/models/billing.go:62
↓ 24 callers
Function
respondJSON
(w http.ResponseWriter, status int, data interface{})
services/auth-service/internal/handlers/registration.go:548
↓ 23 callers
Function
RespondWithError
RespondWithError is a helper to send JSON error responses.
services/provider-registry-service/internal/handlers/provider.go:330
↓ 22 callers
Function
usdc
(amount: number | undefined | null, opts?: { precise?: boolean; symbol?: boolean })
clients/console/src/lib/format.ts:16
↓ 20 callers
Method
Value
Use the existing Job model Value implements the driver.Valuer interface for JobDetailsDB. This tells the SQL driver how to store the JobDetailsDB stru
services/scheduler-orchestrator-service/internal/models/job_record.go:16
↓ 20 callers
Method
sendError
(w http.ResponseWriter, statusCode int, message string)
services/api-gateway/main-simple.go:141
↓ 19 callers
Method
Is
Is implements the errors.Is interface
services/provider-registry-service/internal/errors/errors.go:57
↓ 19 callers
Method
Next
Next takes a list of available service entries and returns the URL of the next one to use.
services/api-gateway/internal/loadbalancer/balancer.go:15
↓ 19 callers
Method
sendError
(w http.ResponseWriter, statusCode int, message string)
services/auth-service/main-sqlite.go:113
↓ 19 callers
Function
writeJSONResponse
Helper functions writeJSONResponse writes a JSON response
services/billing-payment-service/internal/handlers/wallet.go:243
↓ 17 callers
Method
respondWithError
respondWithError sends a JSON error response.
services/storage-service/internal/api/handlers.go:64
↓ 16 callers
Function
respondError
(w http.ResponseWriter, status int, message string)
services/auth-service/internal/middleware/auth.go:309
↓ 14 callers
Method
Run
Run starts the hub
services/api-gateway/internal/websocket/hub.go:60
↓ 13 callers
Method
Status
Status returns the current health, the last detected GPU count, and the last check time.
clients/provider-daemon/internal/gpu/health.go:98
↓ 13 callers
Function
getIPAddress
(r *http.Request)
services/auth-service/internal/handlers/registration.go:534
↓ 12 callers
Method
AvailableBalance
AvailableBalance returns the balance available for spending
services/billing-payment-service/internal/models/wallet.go:35
↓ 12 callers
Function
amdField
amdField returns the first field value whose key contains any of the given substrings (case-insensitive). rocm-smi key names vary across versions.
clients/provider-daemon/internal/gpu/detector.go:303
↓ 12 callers
Function
request
(path: string, opts: RequestOptions = {})
clients/console/src/lib/api.ts:58
↓ 10 callers
Method
WithDetail
WithDetail adds a detail to the error
services/billing-payment-service/internal/models/errors.go:119
↓ 10 callers
Function
getHTTPStatusFromBillingError
getHTTPStatusFromBillingError maps billing errors to HTTP status codes
services/billing-payment-service/internal/handlers/wallet.go:274
↓ 9 callers
Method
Enabled
Enabled reports whether settlement is configured.
services/billing-payment-service/internal/covenant/manager.go:37
↓ 9 callers
Function
outputJSON
(data interface{}, logger *zap.Logger)
clients/provider-daemon/cmd/daemon/main.go:536
↓ 9 callers
Method
publishTaskStatus
publishTaskStatus publishes task status updates via NATS
cmd/provider/main.go:1310
↓ 9 callers
Method
sendJSON
(w http.ResponseWriter, statusCode int, data interface{})
services/api-gateway/main-simple.go:135
↓ 8 callers
Method
Execute
(ctx context.Context, task *models.Task, workspacePath string, logger *zap.Logger)
clients/provider-daemon/internal/executor/executor.go:40
↓ 8 callers
Method
FromContext
FromContext creates a logger with context fields added
services/provider-registry-service/internal/logging/context.go:95
↓ 8 callers
Function
NewBillingError
NewBillingError creates a new BillingError
services/billing-payment-service/internal/models/errors.go:109
↓ 8 callers
Function
RespondWithJSON
RespondWithJSON is a helper to send JSON responses.
services/provider-registry-service/internal/handlers/provider.go:335
↓ 8 callers
Method
Stop
Stop gracefully shuts down the NATS client.
clients/provider-daemon/internal/nats/client.go:328
↓ 8 callers
Function
getenvDefault
Helper functions for environment variables
cmd/rental/main.go:441
↓ 8 callers
Function
num
(v: unknown)
clients/console/src/lib/api.ts:110
↓ 8 callers
Function
outputJSONError
(message string, writer *os.File, logger *zap.Logger)
clients/provider-daemon/cmd/daemon/main.go:548
↓ 8 callers
Function
useAuth
()
clients/console/src/providers/AuthProvider.tsx:84
↓ 7 callers
Method
LoadSecret
(key string)
services/provider-registry-service/internal/config/secrets.go:12
↓ 7 callers
Function
getenvDefault
Helper functions for environment variables
cmd/provider/main.go:563
↓ 7 callers
Function
printTestResult
(result TestResult)
cmd/real-gpu-test/main.go:490
↓ 6 callers
Method
Delete
Delete removes a file from the specified bucket with the given key.
services/storage-service/internal/storage/interface.go:29
↓ 6 callers
Method
Stop
Stop stops the device plugin server
services/dantegpu-device-plugin/main.go:268
↓ 6 callers
Function
amdParseFloat
amdParseFloat parses a numeric string, tolerating surrounding whitespace.
clients/provider-daemon/internal/gpu/detector.go:328
↓ 6 callers
Method
doJSON
(ctx context.Context, method, path string, body any, out any)
services/billing-payment-service/internal/covenant/client.go:113
↓ 6 callers
Method
getTargetBucket
getTargetBucket determines the bucket to use, defaulting to the client's default bucket if none is provided.
services/storage-service/internal/storage/minio.go:88
↓ 6 callers
Method
isCommandAvailable
Helper methods isCommandAvailable checks if a command is available in PATH
clients/provider-daemon/internal/gpu/detector.go:522
↓ 6 callers
Method
renderTemplate
renderTemplate renders an email template
services/auth-service/internal/email/smtp_service.go:258
↓ 6 callers
Method
sendEmail
sendEmail sends an email via SMTP
services/auth-service/internal/email/smtp_service.go:158
↓ 6 callers
Function
shortAddress
(addr: string | undefined | null, lead = 4, tail = 4)
clients/console/src/lib/format.ts:90
↓ 6 callers
Method
writeResponse
writeResponse writes JSON response
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:402
↓ 5 callers
Method
BroadcastToUser
BroadcastToUser sends message to specific user
services/api-gateway/internal/websocket/hub.go:92
↓ 5 callers
Method
Close
()
services/provider-registry-service/internal/handlers/provider.go:29
↓ 5 callers
Method
GetRentalSession
GetRentalSession retrieves a rental session by ID
services/billing-payment-service/internal/store/postgres.go:317
↓ 5 callers
Method
GetWalletByUserID
GetWalletByUserID retrieves a wallet by user ID and type
services/billing-payment-service/internal/store/postgres.go:120
↓ 5 callers
Method
Shutdown
Shutdown gracefully shuts down the GPU provider
cmd/provider/main.go:2102
↓ 5 callers
Method
UpdateWalletBalance
UpdateWalletBalance updates wallet balance and locked balance
services/billing-payment-service/internal/store/postgres.go:149
↓ 5 callers
Method
With
With returns a ContextLogger with the specified fields added
services/provider-registry-service/internal/logging/context.go:90
↓ 5 callers
Function
getObjectKeyFromPath
getObjectKeyFromPath extracts the object key from the Chi URL parameter pattern `/*`.
services/storage-service/internal/api/handlers.go:108
↓ 5 callers
Method
reportTaskStatus
(jobID string, status models.JobStatus, message string, exitCode *int, execLog string)
clients/provider-daemon/internal/tasks/handler.go:168
↓ 5 callers
Method
respondWithJSON
respondWithJSON sends a JSON success response.
services/storage-service/internal/api/handlers.go:80
↓ 5 callers
Method
sendJSON
(w http.ResponseWriter, statusCode int, data interface{})
services/auth-service/main-sqlite.go:107
↓ 5 callers
Method
sessionKey
Helper functions
services/auth-service/internal/session/redis_store.go:238
↓ 5 callers
Function
setToken
(token: string | null)
clients/console/src/lib/api.ts:34
↓ 5 callers
Method
signAndSend
signAndSend assembles a transaction from one or more instructions, signs it with the platform key, and submits it. Multiple instructions land atomical
services/billing-payment-service/internal/covenant/onchain.go:396
↓ 5 callers
Function
useToast
()
clients/console/src/components/ui/Toast.tsx:83
↓ 5 callers
Method
userSessionsKey
(userID string)
services/auth-service/internal/session/redis_store.go:242
↓ 4 callers
Method
CreateTransaction
Transaction operations CreateTransaction creates a new transaction
services/billing-payment-service/internal/store/postgres.go:171
↓ 4 callers
Method
Remove
Remove removes a token from the blacklist
services/auth-service/internal/session/redis_store.go:353
↓ 4 callers
Function
amdParseMB
amdParseMB parses a byte string (rocm-smi reports VRAM in bytes) into MB.
clients/provider-daemon/internal/gpu/detector.go:316
↓ 4 callers
Function
borshU64
----- Borsh arg encoding -----
services/billing-payment-service/internal/covenant/onchain.go:171
↓ 4 callers
Function
getEnv
(key, defaultValue string)
services/ory-kratos-integration/main.go:548
↓ 4 callers
Method
handleTaskError
handleTaskError handles task execution errors
cmd/provider/main.go:1278
↓ 4 callers
Method
logAuditEvent
logAuditEvent logs an audit event
services/auth-service/internal/handlers/login_helpers.go:225
↓ 4 callers
Function
pickNumber
(obj: unknown, keys: string[])
clients/console/src/lib/format.ts:104
↓ 4 callers
Function
read
()
clients/console/src/lib/rentalsStore.ts:23
↓ 4 callers
Function
useBalance
()
clients/console/src/hooks/useBalance.ts:8
↓ 3 callers
Method
CalculatePricing
CalculatePricing calculates the pricing for a GPU rental request
services/billing-payment-service/internal/pricing/engine.go:100
↓ 3 callers
Method
Create
Create creates a new session
services/auth-service/internal/session/redis_store.go:41
↓ 3 callers
Method
CreateWallet
Wallet operations CreateWallet creates a new wallet
services/billing-payment-service/internal/store/postgres.go:58
↓ 3 callers
Method
GetBalance
GetBalance (hypothetical, from previous linter error context) This is a placeholder, assuming the billing service would have an endpoint for this.
clients/provider-daemon/internal/billing/client.go:305
↓ 3 callers
Method
GetJobStatus
GetJobStatus retrieves the current status of a job
cmd/rental/main.go:945
↓ 3 callers
Method
GetUserWallet
GetUserWallet resolves a user's primary (USDC) wallet by user id. The console keys wallet/balance lookups by user id rather than wallet id, so this is
services/billing-payment-service/internal/service/billing.go:145
↓ 3 callers
Method
GetWallet
GetWallet retrieves a wallet by ID
services/billing-payment-service/internal/store/postgres.go:91
↓ 3 callers
Method
GetWalletBalance
GetWalletBalance gets the current balance of a wallet
services/billing-payment-service/internal/service/billing.go:108
↓ 3 callers
Method
GetWalletBalance
GetWalletBalance retrieves current wallet balance
cmd/rental/main.go:823
↓ 3 callers
Method
SubmitJob
SubmitJob submits a new job for execution
cmd/rental/main.go:913
↓ 3 callers
Method
Update
Update updates a session
services/auth-service/internal/session/redis_store.go:92
↓ 3 callers
Method
UpdateRentalSession
UpdateRentalSession updates a rental session
services/billing-payment-service/internal/store/postgres.go:363
↓ 3 callers
Method
UpdateTransactionStatus
UpdateTransactionStatus updates transaction status and signature
services/billing-payment-service/internal/store/postgres.go:219
↓ 3 callers
Method
check
(ctx context.Context)
clients/provider-daemon/internal/gpu/health.go:62
next →
1–100 of 1,089, ranked by callers