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
↓ 1 callers
Method
executeTask
executeTask executes a task with comprehensive monitoring
cmd/provider/main.go:976
↓ 1 callers
Function
explorerUrl
(kind: "tx" | "address", value: string)
clients/console/src/lib/solana.ts:38
↓ 1 callers
Method
extractGPURequirements
extractGPURequirements extracts GPU requirements from pod spec
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:229
↓ 1 callers
Function
extractMessage
(parsed: unknown, text: string, status: number)
clients/console/src/lib/api.ts:100
↓ 1 callers
Method
extractSessionID
extractSessionID extracts session ID from session token (simplified implementation)
services/ory-kratos-integration/main.go:298
↓ 1 callers
Method
fetchLoop
()
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:109
↓ 1 callers
Method
filterNodesByGPU
filterNodesByGPU filters nodes based on GPU availability
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:259
↓ 1 callers
Function
fromUsdcAtoms
(atoms: bigint | number)
clients/console/src/lib/solana.ts:33
↓ 1 callers
Function
gatewayWsUrl
(path: string)
clients/console/src/lib/api.ts:25
↓ 1 callers
Method
generateAPIKey
Helper functions
services/auth-service/internal/handlers/api_keys.go:260
↓ 1 callers
Function
generateAlphanumericCode
(length int)
services/auth-service/internal/handlers/two_factor.go:534
↓ 1 callers
Method
generateBackupCodes
(ctx context.Context, userID string, count int)
services/auth-service/internal/handlers/two_factor.go:473
↓ 1 callers
Method
generateMockAllocations
generateMockAllocations creates mock GPU allocations
services/gpu-monitoring-service/main.go:295
↓ 1 callers
Method
generatePresignedURLHandler
generatePresignedURLHandler handles requests to generate presigned URLs.
services/storage-service/internal/api/handlers.go:249
↓ 1 callers
Method
generateResetToken
()
services/auth-service/internal/handlers/password_reset.go:388
↓ 1 callers
Function
generateSecureToken
generateSecureToken generates a secure random token
services/auth-service/internal/handlers/login_helpers.go:334
↓ 1 callers
Function
generateSecureValues
()
scripts/validate-env.js:206
↓ 1 callers
Function
generateTokenID
generateTokenID generates a unique token ID
services/auth-service/pkg/jwt/jwt.go:203
↓ 1 callers
Method
generateUsername
(email string)
services/auth-service/internal/handlers/registration.go:488
↓ 1 callers
Method
getAMDMetrics
getAMDMetrics gets real-time metrics for AMD GPUs
clients/provider-daemon/internal/gpu/detector.go:657
↓ 1 callers
Method
getAppleMetrics
getAppleMetrics gets real-time metrics for Apple GPUs
clients/provider-daemon/internal/gpu/detector.go:684
↓ 1 callers
Method
getBaseRate
getBaseRate gets the base hourly rate for a GPU model
services/billing-payment-service/internal/pricing/engine.go:185
↓ 1 callers
Method
getCUDAVersion
getCUDAVersion gets the CUDA version
clients/provider-daemon/internal/gpu/detector.go:528
↓ 1 callers
Method
getCachedSession
getCachedSession retrieves cached session information
services/ory-kratos-integration/main.go:274
↓ 1 callers
Function
getCheckAddress
getCheckAddress determines the address to use for the Consul health check URL. If the provided service address is empty or unspecified (0.0.0.0), use
services/provider-registry-service/internal/consul/registration.go:85
↓ 1 callers
Function
getCheckAddress
getCheckAddress determines the address to use for the Consul health check URL. If the provided service address is empty or unspecified (0.0.0.0 or ::)
services/scheduler-orchestrator-service/internal/consul/registration.go:87
↓ 1 callers
Method
getComputeCapability
getComputeCapability gets the compute capability for an NVIDIA GPU
clients/provider-daemon/internal/gpu/detector.go:538
↓ 1 callers
Function
getDefaultConfig
()
services/storage-service/internal/config/config.go:137
↓ 1 callers
Function
getDefaultProviderConfig
getDefaultProviderConfig returns comprehensive default configuration
cmd/provider/main.go:542
↓ 1 callers
Function
getDefaultRentalConfig
getDefaultRentalConfig returns comprehensive default configuration
cmd/rental/main.go:418
↓ 1 callers
Method
getDynamicPricingFactors
getDynamicPricingFactors calculates demand and supply factors for dynamic pricing
services/billing-payment-service/internal/pricing/engine.go:283
↓ 1 callers
Method
getGPUFamilyRate
getGPUFamilyRate attempts to match GPU families for pricing
services/billing-payment-service/internal/pricing/engine.go:215
↓ 1 callers
Method
getGPUMemory
getGPUMemory returns the GPU memory for a specific model
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:322
↓ 1 callers
Method
getGPUMetrics
getGPUMetrics gets current GPU metrics from the wired detector. If no metrics provider is set, it returns an error rather than fabricating usage.
clients/provider-daemon/internal/billing/client.go:209
↓ 1 callers
Function
getHealthCheckHost
getHealthCheckHost determines the host for Consul health check URL. If server host is "" or "0.0.0.0", use "127.0.0.1" for health check.
services/storage-service/cmd/main.go:252
↓ 1 callers
Function
getIPAddress
Utility functions
services/auth-service/internal/middleware/auth.go:298
↓ 1 callers
Function
getLocationFromEnvironment
()
cmd/provider/main.go:598
↓ 1 callers
Method
getNVIDIAMetrics
getNVIDIAMetrics gets real-time metrics for NVIDIA GPUs
clients/provider-daemon/internal/gpu/detector.go:545
↓ 1 callers
Method
getObjectInfoHandler
getObjectInfoHandler handles requests for object metadata (HEAD requests).
services/storage-service/internal/api/handlers.go:207
↓ 1 callers
Method
getRegistrationMessage
(verificationSent bool)
services/auth-service/internal/handlers/registration.go:512
↓ 1 callers
Method
getServiceAddress
getServiceAddress discovers the Provider Registry service using Consul and returns a base URL. It implements a simple cache for the last known address
services/scheduler-orchestrator-service/internal/clients/provider_registry.go:82
↓ 1 callers
Method
getTokenBalance
getTokenBalance gets the dGPU token balance
cmd/rental/main.go:556
↓ 1 callers
Method
getUserRoles
getUserRoles gets all roles for a user
services/auth-service/internal/handlers/login_helpers.go:74
↓ 1 callers
Method
getUserWallet
getUserWallet retrieves user's existing wallet
cmd/rental/main.go:758
↓ 1 callers
Function
getenvBoolDefault
(key string, defaultValue bool)
cmd/provider/main.go:589
↓ 1 callers
Function
getenvDecimalDefault
(key, defaultValue string)
cmd/rental/main.go:457
↓ 1 callers
Function
getenvDecimalDefault
(key, defaultValue string)
cmd/provider/main.go:579
↓ 1 callers
Function
getenvIntDefault
(key string, defaultValue int)
cmd/provider/main.go:570
↓ 1 callers
Function
handleGetFinancialSummaryJSON
(cfg *config.Config, logger *zap.Logger)
clients/provider-daemon/cmd/daemon/main.go:445
↓ 1 callers
Function
handleGetGpusJSON
(cfg *config.Config, logger *zap.Logger)
clients/provider-daemon/cmd/daemon/main.go:199
↓ 1 callers
Function
handleGetLocalJobsJSON
(cfg *config.Config, logger *zap.Logger /* taskHandler *tasks.Handler */)
clients/provider-daemon/cmd/daemon/main.go:388
↓ 1 callers
Function
handleGetNetworkStatusJSON
(cfg *config.Config, logger *zap.Logger)
clients/provider-daemon/cmd/daemon/main.go:413
↓ 1 callers
Function
handleGetSettingsJSON
(cfg *config.Config, logger *zap.Logger)
clients/provider-daemon/cmd/daemon/main.go:254
↓ 1 callers
Function
handleGetSystemOverviewJSON
(cfg *config.Config, logger *zap.Logger)
clients/provider-daemon/cmd/daemon/main.go:489
↓ 1 callers
Method
handleMessage
handleMessage handles incoming messages from client
services/api-gateway/internal/websocket/hub.go:213
↓ 1 callers
Method
handleMessage
handleMessage processes a single NATS message containing a job.
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:143
↓ 1 callers
Method
handleMessage
(msg *nats.Msg)
clients/provider-daemon/internal/nats/client.go:195
↓ 1 callers
Function
handleSetGpuRentalConfig
(cfg *config.Config, configFilePath string, logger *zap.Logger, gpuID string, newRate float64, newAvailability
clients/provider-daemon/cmd/daemon/main.go:296
↓ 1 callers
Function
handleUpdateSettingsJSON
(cfg *config.Config, configFilePath string, logger *zap.Logger, settingsJSON string)
clients/provider-daemon/cmd/daemon/main.go:265
↓ 1 callers
Method
has2FAEnabled
has2FAEnabled checks if user has 2FA enabled
services/auth-service/internal/handlers/login_helpers.go:102
↓ 1 callers
Method
hasAvailableGPU
hasAvailableGPU checks if there's an available GPU
cmd/provider/main.go:1777
↓ 1 callers
Method
hashPassword
(password string)
services/auth-service/main-sqlite.go:97
↓ 1 callers
Method
hashPassword
(password string)
services/auth-service/main.go:64
↓ 1 callers
Method
hashPassword
(password string)
services/auth-service/internal/handlers/registration.go:472
↓ 1 callers
Method
healthCheck
healthCheck monitors device health
services/dantegpu-device-plugin/main.go:339
↓ 1 callers
Method
initDB
()
services/api-gateway/main-simple.go:70
↓ 1 callers
Method
initDB
()
services/auth-service/main-sqlite.go:66
↓ 1 callers
Function
initLogger
initLogger initializes a Zap logger based on the configured log level.
services/storage-service/cmd/main.go:149
↓ 1 callers
Method
initializeDevices
initializeDevices initializes the list of available GPU devices
services/dantegpu-device-plugin/main.go:310
↓ 1 callers
Function
initializeExecutionEnvironment
initializeExecutionEnvironment sets up the Docker and execution environment
cmd/provider/main.go:872
↓ 1 callers
Function
initializeSolanaWallet
initializeSolanaWallet initializes the Solana wallet manager
cmd/provider/main.go:790
↓ 1 callers
Method
initializeSolanaWallet
initializeSolanaWallet initializes the Solana wallet for the client
cmd/rental/main.go:477
↓ 1 callers
Method
isAccountLocked
isAccountLocked checks if an account is locked due to failed login attempts
services/auth-service/internal/handlers/login_helpers.go:16
↓ 1 callers
Method
isDeviceHealthy
isDeviceHealthy checks if a device is healthy
services/dantegpu-device-plugin/main.go:371
↓ 1 callers
Function
isNumeric
Helper function to check if a string is purely numeric
clients/provider-daemon/internal/executor/executor.go:526
↓ 1 callers
Method
isSessionValid
isSessionValid checks if a session is valid
services/auth-service/internal/handlers/login_helpers.go:152
↓ 1 callers
Method
isTokenRevoked
Helper functions
services/auth-service/internal/middleware/auth.go:212
↓ 1 callers
Method
isUserActive
(ctx context.Context, userID string)
services/auth-service/internal/middleware/auth.go:225
↓ 1 callers
Method
isValidSolanaAddress
isValidSolanaAddress validates a Solana address format
services/billing-payment-service/internal/service/billing.go:796
↓ 1 callers
Method
jobPDA
(poster solana.PublicKey, specHash [32]byte)
services/billing-payment-service/internal/covenant/onchain.go:144
↓ 1 callers
Function
levelFor
(line: string)
clients/console/src/hooks/useLogSocket.ts:12
↓ 1 callers
Method
listObjectsHandler
listObjectsHandler handles requests to list objects in a bucket.
services/storage-service/internal/api/handlers.go:231
↓ 1 callers
Function
loadConfig
loadConfig loads configuration from file
services/billing-payment-service/cmd/main.go:117
↓ 1 callers
Function
loadEmailTemplates
loadEmailTemplates loads all email templates
services/auth-service/internal/email/smtp_service.go:267
↓ 1 callers
Function
loadEnvFile
()
scripts/validate-env.js:90
↓ 1 callers
Function
loadPrivateKey
loadPrivateKey loads a private key from file or environment
services/billing-payment-service/internal/solana/client.go:389
↓ 1 callers
Method
loadSecretsFile
loadSecretsFile reads and parses the secrets file
services/provider-registry-service/internal/config/secrets.go:64
↓ 1 callers
Method
login
(w http.ResponseWriter, r *http.Request)
services/auth-service/main.go:74
↓ 1 callers
Method
makeAuthenticatedRequest
makeAuthenticatedRequest makes an HTTP request with authentication
cmd/rental/main.go:634
↓ 1 callers
Function
mapToSlice
mapToSlice converts a map to a slice of key=value strings
cmd/provider/main.go:1847
↓ 1 callers
Method
messageFetchLoop
()
clients/provider-daemon/internal/nats/client.go:152
↓ 1 callers
Function
mustOpen
(filePath string)
clients/provider-daemon/cmd/daemon/main.go:640
↓ 1 callers
Function
newCompactEncoder
newCompactEncoder returns a JSON encoder that does not HTML-escape, matching JavaScript JSON.stringify (used for the spec hash).
services/billing-payment-service/internal/covenant/onchain.go:19
↓ 1 callers
Function
newStructuredLogger
newStructuredLogger creates a chi middleware for logging requests using Zap.
services/storage-service/cmd/main.go:188
↓ 1 callers
Method
nodeHasAvailableGPU
nodeHasAvailableGPU checks if a node has available GPU resources
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:283
↓ 1 callers
Function
normalizeModel
normalizeModel maps a detected GPU name to the pricing table key convention (lowercase, hyphenated). Unknown models fall back to the engine's "default
services/billing-payment-service/cmd/rental-proof/main.go:234
↓ 1 callers
Function
overrideFromEnv
overrideFromEnv checks for environment variables and overrides config fields.
services/api-gateway/internal/config/config.go:104
↓ 1 callers
Function
parseEstimatedCost
(raw: unknown)
clients/console/src/lib/format.ts:121
↓ 1 callers
Function
passesFilters
passesFilters checks if a provider passes all the provided filters.
services/provider-registry-service/internal/store/memory.go:84
↓ 1 callers
Method
performHealthChecks
performHealthChecks performs various health checks
cmd/provider/main.go:2250
← previous
next →
401–500 of 1,089, ranked by callers