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
↓ 3 callers
Function
estimatePowerFromModel
estimatePowerFromModel maps a few well-known GPU model names to their typical board power so power-aware matching and billing degrade gracefully when
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:545
↓ 3 callers
Method
findProviderGPUType
findProviderGPUType extracts the GPU model name from a provider
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:474
↓ 3 callers
Function
getToken
()
clients/console/src/lib/api.ts:30
↓ 3 callers
Function
getenvIntDefault
(key string, defaultValue int)
cmd/rental/main.go:448
↓ 3 callers
Function
isCommandAvailable
isCommandAvailable checks if a command exists in PATH
cmd/provider/main.go:1893
↓ 3 callers
Function
isValidEmail
Utility functions
services/auth-service/internal/handlers/registration.go:529
↓ 3 callers
Method
logAuditEvent
(ctx context.Context, userID, action, email string, r *http.Request)
services/auth-service/internal/handlers/password_reset.go:422
↓ 3 callers
Method
logAuditEvent
(ctx context.Context, userID, action, email string, r *http.Request)
services/auth-service/internal/handlers/two_factor.go:517
↓ 3 callers
Function
pad
(n: number)
clients/console/src/lib/format.ts:57
↓ 3 callers
Method
recordLoginAttempt
recordLoginAttempt records a login attempt
services/auth-service/internal/handlers/login_helpers.go:42
↓ 3 callers
Method
startSubscription
()
clients/provider-daemon/internal/nats/client.go:95
↓ 3 callers
Function
unwrapList
(raw: unknown, ...keys: string[])
clients/console/src/lib/api.ts:156
↓ 3 callers
Function
vram
(mb: number | undefined | null)
clients/console/src/lib/format.ts:32
↓ 3 callers
Method
writeErrorResponse
writeErrorResponse writes error response
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:411
↓ 2 callers
Method
CalculateCurrentCost
CalculateCurrentCost calculates the current cost of the session
services/billing-payment-service/internal/models/billing.go:77
↓ 2 callers
Method
CanSpend
CanSpend checks if the wallet has sufficient available balance
services/billing-payment-service/internal/models/wallet.go:45
↓ 2 callers
Method
ConfirmTransaction
ConfirmTransaction waits for transaction confirmation
services/billing-payment-service/internal/solana/client.go:257
↓ 2 callers
Method
CreateRentalSession
Rental Session operations CreateRentalSession creates a new rental session
services/billing-payment-service/internal/store/postgres.go:285
↓ 2 callers
Method
CreateUsageRecord
Usage Record operations CreateUsageRecord creates a new usage record
services/billing-payment-service/internal/store/postgres.go:451
↓ 2 callers
Method
DeductFunds
DeductFunds deducts the specified amount from the wallet
services/billing-payment-service/internal/models/wallet.go:69
↓ 2 callers
Method
DetectGPUs
DetectGPUs detects all available GPUs on the system
clients/provider-daemon/internal/gpu/detector.go:70
↓ 2 callers
Method
DisputeSession
DisputeSession opens a Covenant dispute on a session's escrow, posting the platform bond. The metering receipt already submitted is the evidence the b
services/billing-payment-service/internal/service/billing.go:193
↓ 2 callers
Method
EndRentalSession
Helper methods EndRentalSession ends a rental session and processes final billing
services/billing-payment-service/internal/service/billing.go:434
↓ 2 callers
Method
Exists
Exists checks if a session exists
services/auth-service/internal/session/redis_store.go:178
↓ 2 callers
Method
Get
(ctx context.Context, sessionID string)
services/auth-service/internal/handlers/login_test.go:300
↓ 2 callers
Method
GetBillingHistory
GetBillingHistory retrieves billing history with pagination
services/billing-payment-service/internal/store/postgres.go:533
↓ 2 callers
Function
GetCorrelationID
GetCorrelationID retrieves the correlation ID from the context
services/provider-registry-service/internal/logging/context.go:44
↓ 2 callers
Method
GetCurrentUsage
GetCurrentUsage gets current usage and cost for an active session
services/billing-payment-service/internal/service/billing.go:541
↓ 2 callers
Method
GetPricingRates
GetPricingRates gets current pricing rates for all supported GPU models
services/billing-payment-service/internal/service/billing.go:780
↓ 2 callers
Method
GetTransactionHistory
GetTransactionHistory retrieves transaction history for a wallet
services/billing-payment-service/internal/service/billing.go:727
↓ 2 callers
Method
GetUserBalance
GetUserBalance resolves a user's primary wallet then returns its balance, reconciling against Solana the same way GetWalletBalance does.
services/billing-payment-service/internal/service/billing.go:151
↓ 2 callers
Method
HasRole
HasRole checks if the token has a specific role
services/auth-service/pkg/jwt/jwt.go:241
↓ 2 callers
Method
Initialize
Initialize creates the necessary database tables
services/billing-payment-service/internal/store/postgres.go:34
↓ 2 callers
Method
ListAvailableProviders
ListAvailableProviders retrieves available GPU providers
cmd/rental/main.go:849
↓ 2 callers
Method
ListObjects
ListObjects lists objects in the specified bucket, optionally filtered by a prefix.
services/storage-service/internal/storage/interface.go:32
↓ 2 callers
Function
NewClient
NewClient creates a Covenant HTTP client.
services/billing-payment-service/internal/covenant/client.go:49
↓ 2 callers
Function
NewLoginHandler
NewLoginHandler creates a new login handler
services/auth-service/internal/handlers/login.go:75
↓ 2 callers
Function
NewRegistrationHandler
NewRegistrationHandler creates a new registration handler
services/auth-service/internal/handlers/registration.go:80
↓ 2 callers
Method
PlatformWallet
PlatformWallet returns the platform public key (the custodial poster).
services/billing-payment-service/internal/covenant/onchain.go:88
↓ 2 callers
Method
ProcessUsageUpdate
ProcessUsageUpdate processes real-time usage data from provider daemon
services/billing-payment-service/internal/service/billing.go:365
↓ 2 callers
Method
SendPasswordChangedEmail
(ctx context.Context, email, firstName string)
services/auth-service/internal/handlers/registration.go:74
↓ 2 callers
Method
SendVerificationEmail
(ctx context.Context, email, token, firstName string)
services/auth-service/internal/handlers/registration.go:71
↓ 2 callers
Method
SendWelcomeEmail
(ctx context.Context, email, firstName string)
services/auth-service/internal/handlers/registration.go:72
↓ 2 callers
Function
SetupLogger
SetupLogger creates a structured logger with consistent configuration
common/utils.go:9
↓ 2 callers
Method
StartRentalSession
(ctx context.Context, req *models.SessionStartRequest)
services/billing-payment-service/internal/service/billing.go:214
↓ 2 callers
Method
SubmitWork
SubmitWork records the provider's delivery (POST /api/jobs/{id}/submit) after the on-chain submit_work instruction is signed.
services/billing-payment-service/internal/covenant/client.go:196
↓ 2 callers
Method
Validate
Validate validates the configuration
services/billing-payment-service/internal/config/config.go:132
↓ 2 callers
Method
ValidateAccessToken
(token string)
services/auth-service/internal/handlers/login_test.go:282
↓ 2 callers
Method
cacheSession
cacheSession caches session information in Redis
services/ory-kratos-integration/main.go:259
↓ 2 callers
Method
calculateNodePriority
calculateNodePriority calculates priority score for a node
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:354
↓ 2 callers
Method
cleanup
cleanup removes the socket file
services/dantegpu-device-plugin/main.go:331
↓ 2 callers
Method
cleanupTestData
()
tests/integration/auth_flow_test.go:66
↓ 2 callers
Method
configPDA
----- PDA derivations -----
services/billing-payment-service/internal/covenant/onchain.go:139
↓ 2 callers
Function
copy
()
clients/console/src/pages/ProviderOnboarding.tsx:111
↓ 2 callers
Method
endBillingSession
endBillingSession ends the billing session
cmd/provider/main.go:1414
↓ 2 callers
Method
escrowTokenPDA
(job solana.PublicKey)
services/billing-payment-service/internal/covenant/onchain.go:149
↓ 2 callers
Method
extractEmail
extractEmail extracts email from user traits
services/ory-kratos-integration/main.go:309
↓ 2 callers
Function
extractIORegNumber
extractIORegNumber reads the numeric value that follows a marker in ioreg output (for example `"Device Utilization %"=12`). Returns -1 if absent.
clients/provider-daemon/internal/gpu/detector.go:708
↓ 2 callers
Method
extractRole
extractRole extracts role from user traits
services/ory-kratos-integration/main.go:317
↓ 2 callers
Method
generateMockProcesses
generateMockProcesses creates mock GPU processes
services/gpu-monitoring-service/main.go:269
↓ 2 callers
Function
generateNumericCode
(length int)
services/auth-service/internal/handlers/two_factor.go:524
↓ 2 callers
Method
generateToken
(userID string)
services/auth-service/main-sqlite.go:87
↓ 2 callers
Method
generateToken
(userID string)
services/auth-service/main.go:55
↓ 2 callers
Method
generateVerificationToken
()
services/auth-service/internal/handlers/registration.go:496
↓ 2 callers
Method
getAvailableGPUCount
getAvailableGPUCount returns the number of available GPUs on a node
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:313
↓ 2 callers
Function
getenvBoolDefault
(key string, defaultValue bool)
cmd/rental/main.go:467
↓ 2 callers
Function
hashCode
(code string)
services/auth-service/internal/handlers/two_factor.go:540
↓ 2 callers
Method
hashToken
(token string)
services/auth-service/internal/handlers/password_reset.go:398
↓ 2 callers
Method
hashToken
(token string)
services/auth-service/internal/handlers/registration.go:506
↓ 2 callers
Method
initializeWorkerPool
initializeWorkerPool creates worker goroutines for task execution
cmd/provider/main.go:933
↓ 2 callers
Method
invalidateCachedAddress
invalidateCachedAddress clears the last known address, forcing a new Consul lookup on next call.
services/scheduler-orchestrator-service/internal/clients/provider_registry.go:167
↓ 2 callers
Function
isTerminal
(state: JobState | undefined)
clients/console/src/hooks/useJob.ts:22
↓ 2 callers
Method
logAuditEvent
(ctx context.Context, userID, action, resourceID string, r *http.Request)
services/auth-service/internal/handlers/api_keys.go:289
↓ 2 callers
Method
logAuditEvent
(ctx context.Context, userID, action, email string, r *http.Request)
services/auth-service/internal/handlers/registration.go:519
↓ 2 callers
Function
mapToCustomError
mapToCustomError maps database errors to our custom error types
services/provider-registry-service/internal/store/db_errors.go:124
↓ 2 callers
Function
normalizeBalance
(raw: unknown)
clients/console/src/lib/api.ts:119
↓ 2 callers
Method
printProviders
printProviders displays provider information
cmd/rental/main.go:1013
↓ 2 callers
Method
runRocmSMI
runRocmSMI runs rocm-smi in JSON mode and returns the per-card field maps.
clients/provider-daemon/internal/gpu/detector.go:280
↓ 2 callers
Method
scanJobRows
scanJobRows is a helper function to scan multiple rows into a slice of JobRecord.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:229
↓ 2 callers
Function
scheduleRetry
()
clients/console/src/hooks/useLogSocket.ts:93
↓ 2 callers
Function
setupLogger
(levelString string)
clients/provider-daemon/cmd/daemon/main.go:561
↓ 2 callers
Function
short
(id string)
services/billing-payment-service/cmd/rental-proof/main.go:353
↓ 2 callers
Function
solanaCluster
()
clients/console/src/lib/solana.ts:23
↓ 2 callers
Method
supportsFractionalGPU
supportsFractionalGPU checks if a node supports fractional GPU allocation
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:345
↓ 2 callers
Function
timestamp
(iso: string | undefined | null)
clients/console/src/lib/format.ts:62
↓ 2 callers
Function
toAtomic
(amount decimal.Decimal)
services/billing-payment-service/internal/covenant/onchain.go:185
↓ 2 callers
Function
toUser
(res: AuthResponse, fallbackUsername: string)
clients/console/src/providers/AuthProvider.tsx:17
↓ 2 callers
Function
useJob
(jobId: string | undefined)
clients/console/src/hooks/useJob.ts:9
↓ 2 callers
Function
useMarketplace
()
clients/console/src/hooks/useMarketplace.ts:7
↓ 2 callers
Function
useRentals
()
clients/console/src/hooks/useRentals.ts:6
↓ 2 callers
Function
useTheme
()
clients/console/src/providers/ThemeProvider.tsx:47
↓ 2 callers
Method
validatePasswordStrength
(password string)
services/auth-service/internal/handlers/password_reset.go:403
↓ 2 callers
Method
validateSession
validateSession validates the session using Ory Kratos
services/ory-kratos-integration/main.go:184
↓ 2 callers
Method
validateToken
validateToken validates a token with the given secret
services/auth-service/pkg/jwt/jwt.go:130
↓ 2 callers
Function
write
(next: LocalRental[])
clients/console/src/lib/rentalsStore.ts:34
↓ 1 callers
Method
AddFunds
AddFunds adds the specified amount to the wallet
services/billing-payment-service/internal/models/wallet.go:79
↓ 1 callers
Method
AddProvider
(ctx context.Context, provider *models.Provider)
services/provider-registry-service/internal/handlers/provider.go:21
↓ 1 callers
Method
BroadcastToAll
BroadcastToAll sends message to all connected clients
services/api-gateway/internal/websocket/hub.go:107
↓ 1 callers
Function
BuildDatabaseURL
BuildDatabaseURL constructs a database URL from individual components This allows us to store credentials separately from the connection string
services/provider-registry-service/internal/config/secrets.go:123
↓ 1 callers
Function
BuildSpec
BuildSpec assembles the canonical rental spec.
services/billing-payment-service/internal/covenant/onchain.go:123
← previous
next →
101–200 of 1,089, ranked by callers