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
SetGPUAvailability
GPU Availability Cache Methods SetGPUAvailability caches GPU availability data
services/redis-cache-service/main.go:153
↓ 1 callers
Method
SetHealthChecker
SetHealthChecker wires the GPU health monitor so the handler can reject tasks while the provider is offline.
clients/provider-daemon/internal/tasks/handler.go:73
↓ 1 callers
Method
SetMetricsProvider
SetMetricsProvider wires a real GPU-metrics source (the daemon's detector) into the billing monitor.
clients/provider-daemon/internal/billing/client.go:31
↓ 1 callers
Method
SetProviderRates
SetProviderRates forwards a provider's rate update to the billing service.
services/api-gateway/internal/handlers/billing.go:328
↓ 1 callers
Method
SetReporter
SetReporter sets the reporter for the handler (used to break init cycle with NATS client).
clients/provider-daemon/internal/tasks/handler.go:67
↓ 1 callers
Method
SettleRentalJob
SettleRentalJob finalizes the escrow to the provider after the challenge window (the provider payout, on-chain).
services/billing-payment-service/internal/covenant/manager.go:139
↓ 1 callers
Method
SettleRipeJobs
SettleRipeJobs is the provider-payout crank. It finalizes every delivered, undisputed Covenant job (taker == platform in Phase 1) whose challenge wind
services/billing-payment-service/internal/covenant/manager.go:181
↓ 1 callers
Function
SpecHash
SpecHash computes the 32-byte spec hash exactly as Covenant does: sha256(JSON.stringify(spec)) with no HTML escaping. The same hash must be sent to th
services/billing-payment-service/internal/covenant/onchain.go:109
↓ 1 callers
Method
Start
Start starts the GPU monitoring service
services/gpu-monitoring-service/main.go:108
↓ 1 callers
Method
Start
Start initiates the HTTP server listening process.
services/scheduler-orchestrator-service/internal/server/server.go:40
↓ 1 callers
Method
Start
Start starts the device plugin server
services/dantegpu-device-plugin/main.go:224
↓ 1 callers
Method
Start
Start runs the health loop until the context is cancelled. It blocks, so run it in a goroutine.
clients/provider-daemon/internal/gpu/health.go:48
↓ 1 callers
Method
StartBilling
StartBilling informs the billing service that a task's billable period has begun.
clients/provider-daemon/internal/billing/client.go:217
↓ 1 callers
Method
StartConsuming
StartConsuming subscribes to the NATS subject for job submissions and starts processing messages. This uses a JetStream PullSubscription for more cont
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:65
↓ 1 callers
Method
StartListening
StartListening subscribes to the task subject and starts processing messages.
clients/provider-daemon/internal/nats/client.go:91
↓ 1 callers
Method
StartSession
StartSession starts a new rental session
services/scheduler-orchestrator-service/internal/billing/integration.go:92
↓ 1 callers
Method
Stop
Stop gracefully shuts down the JobConsumer.
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:564
↓ 1 callers
Method
Stop
Stop gracefully shuts down the HTTP server.
services/scheduler-orchestrator-service/internal/server/server.go:48
↓ 1 callers
Method
StopBilling
StopBilling ends the rental session in the billing service. The session is keyed by the id the scheduler placed in the task; the daemon only needs to
clients/provider-daemon/internal/billing/client.go:242
↓ 1 callers
Method
ToInternalJobRepresentation
ToInternalJobRepresentation converts a JobRecord from the database back to an InternalJobRepresentation.
services/scheduler-orchestrator-service/internal/models/job_record.go:51
↓ 1 callers
Method
TotalBalance
TotalBalance returns the total balance including locked and pending
services/billing-payment-service/internal/models/wallet.go:40
↓ 1 callers
Method
TransferTokens
TransferTokens transfers USDC between wallets
services/billing-payment-service/internal/solana/client.go:174
↓ 1 callers
Method
UnlockFunds
UnlockFunds unlocks the specified amount
services/billing-payment-service/internal/models/wallet.go:60
↓ 1 callers
Method
UpdateJobState
UpdateJobState updates specific fields of a job: its state, assigned provider ID, last error, and increments attempts. It also updates the UpdatedAt t
services/scheduler-orchestrator-service/internal/store/jobstore.go:20
↓ 1 callers
Method
UpdateProvider
(ctx context.Context, id uuid.UUID, updatedProvider *models.Provider)
services/provider-registry-service/internal/handlers/provider.go:24
↓ 1 callers
Method
UpdateProviderHeartbeat
(ctx context.Context, id uuid.UUID, gpuMetrics []models.GPUDetail)
services/provider-registry-service/internal/handlers/provider.go:27
↓ 1 callers
Method
UpdateProviderStatus
(ctx context.Context, id uuid.UUID, status models.ProviderStatus)
services/provider-registry-service/internal/handlers/provider.go:26
↓ 1 callers
Method
UpdateStatus
UpdateStatus updates the provider's status and last seen time.
services/provider-registry-service/internal/models/provider.go:79
↓ 1 callers
Method
Upload
Upload uploads a file to the specified bucket with the given key. reader is the content of the file, size is the total size, and contentType is the MI
services/storage-service/internal/storage/interface.go:22
↓ 1 callers
Method
ValidateJobRequirements
ValidateJobRequirements validates that a job can be billed properly
services/scheduler-orchestrator-service/internal/billing/integration.go:214
↓ 1 callers
Method
ValidatePricingRequest
ValidatePricingRequest validates a pricing request
services/billing-payment-service/internal/pricing/engine.go:300
↓ 1 callers
Method
ValidateRefreshToken
ValidateRefreshToken validates a refresh token and returns the claims
services/auth-service/pkg/jwt/jwt.go:125
↓ 1 callers
Method
ValidateRefreshToken
(token string)
services/auth-service/internal/handlers/login_test.go:286
↓ 1 callers
Method
VerifyEmail
VerifyEmail handles email verification
services/auth-service/internal/handlers/registration.go:258
↓ 1 callers
Function
WithCorrelationID
WithCorrelationID returns a new context with the correlation ID set
services/provider-registry-service/internal/logging/context.go:24
↓ 1 callers
Function
WithRetry
WithRetry executes a database operation with retries for transient errors
services/provider-registry-service/internal/store/db_errors.go:63
↓ 1 callers
Method
WithdrawTokens
WithdrawTokens processes a dGPU token withdrawal
services/api-gateway/internal/billing/client.go:213
↓ 1 callers
Function
appleEstimateVRAMByName
appleEstimateVRAMByName is a coarse per-chip fallback used only when sysctl is unavailable. It mirrors typical base unified-memory configurations and
clients/provider-daemon/internal/gpu/detector.go:410
↓ 1 callers
Function
appleUnifiedMemoryMB
appleUnifiedMemoryMB returns the machine's total physical memory in MB via sysctl hw.memsize. On Apple Silicon the GPU shares this unified memory, so
clients/provider-daemon/internal/gpu/detector.go:395
↓ 1 callers
Function
apply
(theme: Theme)
clients/console/src/providers/ThemeProvider.tsx:24
↓ 1 callers
Function
applyDefaultsIfNotSet
applyDefaultsIfNotSet applies default values to cfg fields if they are zero-valued. This is useful if the config file exists but is missing some keys.
services/api-gateway/internal/config/config.go:153
↓ 1 callers
Function
applyDefaultsIfNotSet
applyDefaultsIfNotSet applies default values from `defaults` to `cfg` for zero-valued fields.
services/storage-service/internal/config/config.go:171
↓ 1 callers
Function
applyDefaultsIfNotSet
applyDefaultsIfNotSet applies default values to cfg fields if they are zero-valued.
services/provider-registry-service/internal/config/config.go:85
↓ 1 callers
Function
applyDefaultsIfNotSet
(cfg *Config, defaults *Config)
services/scheduler-orchestrator-service/internal/config/config.go:116
↓ 1 callers
Function
applyDefaultsIfNotSet
applyDefaultsIfNotSet applies default values to cfg fields if they are zero-valued.
clients/provider-daemon/internal/config/config.go:175
↓ 1 callers
Method
authenticate
authenticate with API Gateway
cmd/rental/main.go:699
↓ 1 callers
Function
bestProviderPowerW
bestProviderPowerW returns the highest rated power envelope (in Watts) across the provider's GPUs. Falls back to a model-name heuristic when the regis
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:528
↓ 1 callers
Function
bestProviderVRAM
bestProviderVRAM returns the largest single-GPU VRAM (in MB) the provider exposes. Heterogeneous rigs may pack different cards; we match against the s
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:514
↓ 1 callers
Method
bondPDA
(job solana.PublicKey)
services/billing-payment-service/internal/covenant/onchain.go:164
↓ 1 callers
Function
borshI64
(v int64)
services/billing-payment-service/internal/covenant/onchain.go:177
↓ 1 callers
Function
borshString
(s string)
services/billing-payment-service/internal/covenant/onchain.go:179
↓ 1 callers
Method
broadcast
broadcast sends message to all WebSocket clients
services/gpu-monitoring-service/main.go:401
↓ 1 callers
Method
broadcastData
broadcastData broadcasts GPU data to WebSocket clients
services/gpu-monitoring-service/main.go:368
↓ 1 callers
Method
buildEmailMessage
buildEmailMessage builds the email message with headers
services/auth-service/internal/email/smtp_service.go:238
↓ 1 callers
Function
buildReceipt
(gpu daemonGPU, req *pricing.PricingRequest, p *pricing.PricingResponse, jobID, sessionID, providerID, renter
services/billing-payment-service/cmd/rental-proof/main.go:261
↓ 1 callers
Method
calculateSystemStats
calculateSystemStats calculates overall system statistics
services/gpu-monitoring-service/main.go:538
↓ 1 callers
Method
canRequestReset
Helper functions
services/auth-service/internal/handlers/password_reset.go:369
↓ 1 callers
Function
canonical
canonical renders the receipt deterministically (sorted keys) for hashing.
services/billing-payment-service/cmd/rental-proof/main.go:287
↓ 1 callers
Method
checkPassword
(password, hash string)
services/auth-service/main-sqlite.go:102
↓ 1 callers
Method
checkPassword
(password, hash string)
services/auth-service/main.go:69
↓ 1 callers
Method
claimPDA
(job solana.PublicKey)
services/billing-payment-service/internal/covenant/onchain.go:159
↓ 1 callers
Method
cleanupContainer
cleanupContainer removes a Docker container
cmd/provider/main.go:1830
↓ 1 callers
Method
cleanupTestData
()
tests/integration/job_execution_test.go:120
↓ 1 callers
Method
cleanupTestData
()
tests/integration/rental_flow_test.go:129
↓ 1 callers
Method
cleanupWorkspace
(workspacePath string, jobID string)
clients/provider-daemon/internal/tasks/handler.go:237
↓ 1 callers
Method
collectContainerLogs
collectContainerLogs collects logs from a Docker container
cmd/provider/main.go:1787
↓ 1 callers
Method
collectGPUData
collectGPUData continuously collects GPU data
services/gpu-monitoring-service/main.go:137
↓ 1 callers
Method
collectGPUMetrics
collectGPUMetrics collects current GPU metrics
cmd/provider/main.go:1621
↓ 1 callers
Method
collectMetrics
collectMetrics collects system and GPU metrics during task execution
cmd/provider/main.go:1583
↓ 1 callers
Method
collectNVIDIAMetrics
collectNVIDIAMetrics collects NVIDIA GPU metrics
cmd/provider/main.go:1636
↓ 1 callers
Method
collectSystemMetrics
collectSystemMetrics collects system and GPU metrics
cmd/provider/main.go:2214
↓ 1 callers
Function
connect
()
clients/console/src/components/ProviderConsole.tsx:30
↓ 1 callers
Function
connect
()
clients/console/src/hooks/useLogSocket.ts:46
↓ 1 callers
Method
convertAMR
convertAMR converts authentication methods reference
services/ory-kratos-integration/main.go:325
↓ 1 callers
Method
create2FASession
create2FASession creates a temporary session for 2FA verification
services/auth-service/internal/handlers/login_helpers.go:115
↓ 1 callers
Method
createSession
createSession creates a new user session
services/auth-service/internal/handlers/login_helpers.go:132
↓ 1 callers
Method
createWallet
createWallet creates a new wallet for the user
cmd/rental/main.go:784
↓ 1 callers
Function
defaultPricingConfig
defaultPricingConfig mirrors services/billing-payment-service/configs/config.yaml so the engine computes the same figures the live service would.
services/billing-payment-service/cmd/rental-proof/main.go:242
↓ 1 callers
Method
deleteObjectHandler
deleteObjectHandler handles object deletions.
services/storage-service/internal/api/handlers.go:190
↓ 1 callers
Function
deposit
(amountUsdc: number)
clients/console/src/hooks/useDeposit.ts:25
↓ 1 callers
Function
deregisterServiceFromConsul
deregisterServiceFromConsul deregisters the service from Consul.
services/storage-service/cmd/main.go:261
↓ 1 callers
Function
detectAMDGPUs
detectAMDGPUs detects AMD GPUs (Linux only)
cmd/provider/main.go:1986
↓ 1 callers
Method
detectAMDGPUs
detectAMDGPUs detects AMD GPUs using rocm-smi
clients/provider-daemon/internal/gpu/detector.go:242
↓ 1 callers
Function
detectAppleGPUs
detectAppleGPUs detects Apple Silicon GPUs (macOS only)
cmd/provider/main.go:2053
↓ 1 callers
Method
detectAppleGPUs
detectAppleGPUs detects Apple Silicon GPUs
clients/provider-daemon/internal/gpu/detector.go:337
↓ 1 callers
Function
detectGPUs
(ctx context.Context, daemonPath string)
services/billing-payment-service/cmd/rental-proof/main.go:219
↓ 1 callers
Function
detectGPUs
detectGPUs detects available GPUs on the system
cmd/provider/main.go:1899
↓ 1 callers
Function
detectIntelGPUs
detectIntelGPUs detects Intel GPUs
cmd/provider/main.go:2019
↓ 1 callers
Method
detectIntelGPUs
detectIntelGPUs detects Intel GPUs via sysfs (vendor id 0x8086). This works without any Intel tooling and reports real devices instead of a placeholde
clients/provider-daemon/internal/gpu/detector.go:442
↓ 1 callers
Function
detectNVIDIAGPUs
detectNVIDIAGPUs detects NVIDIA GPUs using nvidia-smi
cmd/provider/main.go:1942
↓ 1 callers
Method
detectNVIDIAGPUs
detectNVIDIAGPUs detects NVIDIA GPUs using nvidia-smi
clients/provider-daemon/internal/gpu/detector.go:116
↓ 1 callers
Function
disconnect
()
clients/console/src/components/ProviderConsole.tsx:34
↓ 1 callers
Method
downloadFile
downloadFile downloads a single file
cmd/provider/main.go:1471
↓ 1 callers
Method
downloadInputFiles
downloadInputFiles downloads input files for the task
cmd/provider/main.go:1445
↓ 1 callers
Method
downloadObjectHandler
downloadObjectHandler handles object downloads.
services/storage-service/internal/api/handlers.go:156
↓ 1 callers
Function
duration
(totalSeconds: number | undefined | null)
clients/console/src/lib/format.ts:47
↓ 1 callers
Method
endBillingSession
endBillingSession ends the rental session that the scheduler created for this task (threaded in via JobParams["session_id"]). It runs for every termin
clients/provider-daemon/internal/tasks/handler.go:199
↓ 1 callers
Method
estimateJobCost
estimateJobCost handles cost estimation
cmd/rental/main.go:1244
↓ 1 callers
Method
executeDockerTask
executeDockerTask executes a task using Docker
cmd/provider/main.go:1082
↓ 1 callers
Method
executeScriptTask
executeScriptTask executes a script-based task
cmd/provider/main.go:1184
← previous
next →
301–400 of 1,089, ranked by callers