MCPcopy Create free account

hub / github.com/dante-gpu/dantegpu-core / functions

Functions1,089 in github.com/dante-gpu/dantegpu-core

↓ 1 callersMethodCalculatePricing
CalculatePricing handles pricing calculation requests
services/api-gateway/internal/handlers/billing.go:145
↓ 1 callersMethodCalculatePricing
CalculatePricing calculates pricing for GPU rental requirements
services/billing-payment-service/internal/service/billing.go:739
↓ 1 callersMethodCancelJob
CancelJob cancels a running job
cmd/rental/main.go:971
↓ 1 callersMethodCheckUserBalance
CheckUserBalance checks if a user has sufficient balance for a session
services/scheduler-orchestrator-service/internal/billing/integration.go:180
↓ 1 callersMethodClose
Close closes the database connection pool.
services/provider-registry-service/internal/store/postgres_providerstore.go:731
↓ 1 callersMethodClose
Close closes the Redis connection
services/redis-cache-service/main.go:438
↓ 1 callersMethodCloseRentalJob
CloseRentalJob submits the provider's delivery: the metering receipt hash and a URI to the stored receipt. After the challenge window, SettleRentalJob
services/billing-payment-service/internal/covenant/manager.go:113
↓ 1 callersMethodCreateAssociatedTokenAccount
CreateAssociatedTokenAccount creates an associated token account for a wallet
services/billing-payment-service/internal/solana/client.go:304
↓ 1 callersMethodCreateJob
CreateJob builds, signs, and submits the create_job instruction (locks USDC in the per-job escrow), returning the job PDA and tx signature for HTTP in
services/billing-payment-service/internal/covenant/onchain.go:207
↓ 1 callersFunctionDefaultSecretLoader
DefaultSecretLoader returns a chained secret loader with environment variables and an optional secrets file
services/provider-registry-service/internal/config/secrets.go:108
↓ 1 callersMethodDeleteProvider
(ctx context.Context, id uuid.UUID)
services/provider-registry-service/internal/handlers/provider.go:25
↓ 1 callersMethodDepositTokens
DepositTokens processes a dGPU token deposit
services/api-gateway/internal/billing/client.go:172
↓ 1 callersMethodDetectGPUsOnce
DetectGPUsOnce performs an immediate, one-time detection of GPUs and returns them. This is useful for CLI commands or synchronous requests.
clients/provider-daemon/internal/gpu/detector.go:735
↓ 1 callersMethodDisputeRentalJob
DisputeRentalJob opens a dispute on a rental's escrow with the given reason, posting the platform's bond. The bonded 2-of-3 arbitrator resolves it usi
services/billing-payment-service/internal/covenant/manager.go:161
↓ 1 callersMethodDownload
Download retrieves a file from the specified bucket with the given key. It returns an io.ReadCloser for the file content and its metadata.
services/storage-service/internal/storage/interface.go:26
↓ 1 callersMethodDurationHours
DurationHours returns the duration in hours
services/billing-payment-service/internal/models/billing.go:70
↓ 1 callersFunctionEnrichLoggerWithContext
EnrichLoggerWithContext creates a new logger with correlation ID and request ID fields added from the context
services/provider-registry-service/internal/logging/context.go:61
↓ 1 callersMethodEnsureBucket
EnsureBucket checks if a bucket exists, and creates it if it doesn't.
services/storage-service/internal/storage/interface.go:38
↓ 1 callersMethodEnsureBucket
EnsureBucket creates a bucket if it does not already exist.
services/storage-service/internal/storage/minio.go:66
↓ 1 callersMethodEstimateJobCost
EstimateJobCost estimates the cost of running a job
cmd/rental/main.go:881
↓ 1 callersMethodExtractClaims
ExtractClaims extracts claims from a token without validation (for debugging)
services/auth-service/pkg/jwt/jwt.go:173
↓ 1 callersMethodFinalize
Finalize triggers settlement after the challenge window (POST api/jobs/{id}/finalize). This is the provider payout. Covenant also runs a finalize cron
services/billing-payment-service/internal/covenant/client.go:208
↓ 1 callersMethodGenerateTokenPair
GenerateTokenPair generates both access and refresh tokens
services/auth-service/pkg/jwt/jwt.go:58
↓ 1 callersMethodGenerateTokenPair
(userID, email string, roles []string)
services/auth-service/internal/handlers/login_test.go:275
↓ 1 callersFunctionGetAbsPath
GetAbsPath returns the absolute path for a given relative path to the config file.
services/storage-service/internal/config/config.go:237
↓ 1 callersMethodGetActiveSubscriptionCount
GetActiveSubscriptionCount returns the number of active (valid) primary task subscriptions. Currently, this is 0 or 1.
clients/provider-daemon/internal/nats/client.go:320
↓ 1 callersMethodGetConnectionURL
GetConnectionURL returns the URL the NATS client is connected to, or the configured URL if not connected.
clients/provider-daemon/internal/nats/client.go:298
↓ 1 callersMethodGetCurrentUsage
GetCurrentUsage gets current usage information for a session
clients/provider-daemon/internal/billing/client.go:131
↓ 1 callersFunctionGetDatabaseCredentials
GetDatabaseCredentials retrieves database credentials from the secret loader
services/provider-registry-service/internal/config/secrets.go:129
↓ 1 callersMethodGetDatabaseURL
GetDatabaseURL returns the database connection URL, either from the direct URL in the config or by constructing it from individual credentials loaded
services/provider-registry-service/internal/config/config.go:130
↓ 1 callersMethodGetFinancialSummary
GetFinancialSummary retrieves a summary of financial data for the provider. This is a STUB method and needs a corresponding endpoint in the billing se
clients/provider-daemon/internal/billing/client.go:316
↓ 1 callersMethodGetJob
GetJob retrieves a job by its ID.
services/scheduler-orchestrator-service/internal/store/jobstore.go:16
↓ 1 callersMethodGetJob
GetJob retrieves a job by its ID from the database.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:140
↓ 1 callersMethodGetLastErrorStr
GetLastErrorStr returns the last error encountered by the NATS client as a string. Returns an empty string if there is no last error.
clients/provider-daemon/internal/nats/client.go:307
↓ 1 callersMethodGetMetrics
GetMetrics gets real-time metrics for all GPUs
clients/provider-daemon/internal/gpu/detector.go:487
↓ 1 callersMethodGetObjectInfo
GetObjectInfo retrieves metadata for a specific object.
services/storage-service/internal/storage/interface.go:35
↓ 1 callersMethodGetPlatformFeePercent
GetPlatformFeePercent returns the platform fee percentage
services/billing-payment-service/internal/pricing/engine.go:360
↓ 1 callersMethodGetPowerMultiplier
GetPowerMultiplier returns the power consumption multiplier
services/billing-payment-service/internal/pricing/engine.go:355
↓ 1 callersMethodGetPresignedURL
GetPresignedURL generates a presigned URL for an object, either for uploading (PUT) or downloading (GET). expiry is the duration for which the URL wil
services/storage-service/internal/storage/interface.go:42
↓ 1 callersMethodGetProvider
(ctx context.Context, id uuid.UUID)
services/provider-registry-service/internal/handlers/provider.go:22
↓ 1 callersMethodGetProviderEarnings
GetProviderEarnings calculates provider earnings for a given period
services/billing-payment-service/internal/store/postgres.go:614
↓ 1 callersMethodGetProviderRates
GetProviderRates proxies to the billing service for a provider's configured hourly rates.
services/api-gateway/internal/handlers/billing.go:317
↓ 1 callersFunctionGetRequestID
GetRequestID retrieves the request ID from the context
services/provider-registry-service/internal/logging/context.go:52
↓ 1 callersMethodGetSupportedGPUModels
GetSupportedGPUModels returns a list of supported GPU models and their base rates
services/billing-payment-service/internal/pricing/engine.go:339
↓ 1 callersMethodGetTokenBalance
GetTokenBalance gets the USDC balance for a given wallet address
services/billing-payment-service/internal/solana/client.go:138
↓ 1 callersMethodGetTokenExpiration
GetTokenExpiration returns the expiration time from a token
services/auth-service/pkg/jwt/jwt.go:212
↓ 1 callersMethodGetVRAMRatePerGB
GetVRAMRatePerGB returns the VRAM rate per GB per hour
services/billing-payment-service/internal/pricing/engine.go:350
↓ 1 callersMethodHealthCheck
Health check
services/redis-cache-service/main.go:433
↓ 1 callersMethodHealthy
()
clients/provider-daemon/internal/tasks/handler.go:37
↓ 1 callersMethodHeartbeat
Heartbeat updates the provider's last seen time.
services/provider-registry-service/internal/models/provider.go:85
↓ 1 callersMethodIndexCreatedJob
IndexCreatedJob registers a job with Covenant after the platform has signed and submitted the on-chain create_job instruction (POST /api/jobs). The on
services/billing-payment-service/internal/covenant/client.go:186
↓ 1 callersMethodInitialize
Initialize sets up the PostgreSQL tables if they don't exist.
services/provider-registry-service/internal/store/postgres_providerstore.go:37
↓ 1 callersMethodInitialize
Initialize creates the necessary 'jobs' table if it doesn't already exist.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:34
↓ 1 callersMethodInitialize
Initialize sets up the rental client
cmd/rental/main.go:680
↓ 1 callersMethodInitialize
Initialize sets up the GPU provider
cmd/provider/main.go:2083
↓ 1 callersMethodIsConnected
IsConnected checks if the NATS client is currently connected.
clients/provider-daemon/internal/nats/client.go:289
↓ 1 callersFunctionIsTransientError
IsTransientError determines if an error is likely transient and can be retried
services/provider-registry-service/internal/store/db_errors.go:31
↓ 1 callersFunctionIsTransientError
IsTransientError determines if an error is a transient database error
services/provider-registry-service/internal/retryer/retryer.go:35
↓ 1 callersMethodListAvailableProviders
ListAvailableProviders fetches a list of all providers from the Provider Registry service. TODO: Add filtering capabilities based on job requirements.
services/scheduler-orchestrator-service/internal/clients/provider_registry.go:121
↓ 1 callersMethodListJobs
ListJobs returns jobs filtered by taker wallet (GET /api/jobs). Used by the settlement crank to find delivered jobs awaiting finalize.
services/billing-payment-service/internal/covenant/client.go:157
↓ 1 callersMethodListProviders
(ctx context.Context, filters map[string]interface{})
services/provider-registry-service/internal/handlers/provider.go:23
↓ 1 callersMethodLockFunds
LockFunds locks the specified amount for a session
services/billing-payment-service/internal/models/wallet.go:50
↓ 1 callersMethodLogin
Login handles user login
services/auth-service/internal/handlers/login.go:85
↓ 1 callersFunctionMinBond
MinBond returns the minimum dispute bond in atomic units for an escrow amount, matching the program: max(amount * bps / 10_000, min_absolute).
services/billing-payment-service/internal/covenant/onchain.go:52
↓ 1 callersMethodMonitor
Monitor starts monitoring a session and sends periodic usage updates
clients/provider-daemon/internal/billing/client.go:158
↓ 1 callersFunctionNewAPIGateway
(db *sql.DB)
services/api-gateway/main-simple.go:66
↓ 1 callersFunctionNewAuthService
(db *sql.DB, jwtSecret string)
services/auth-service/main-sqlite.go:59
↓ 1 callersFunctionNewAuthService
(db *pgxpool.Pool, jwtSecret string)
services/auth-service/main.go:48
↓ 1 callersFunctionNewDanteGPUDevicePlugin
NewDanteGPUDevicePlugin creates a new device plugin
services/dantegpu-device-plugin/main.go:37
↓ 1 callersFunctionNewGPUMonitoringService
NewGPUMonitoringService creates a new GPU monitoring service
services/gpu-monitoring-service/main.go:94
↓ 1 callersFunctionNewGPUProvider
NewGPUProvider creates a new GPU provider instance with comprehensive capabilities
cmd/provider/main.go:671
↓ 1 callersFunctionNewGPURentalClient
NewGPURentalClient creates a comprehensive GPU rental client
cmd/rental/main.go:379
↓ 1 callersFunctionNewGPUService
(db *pgxpool.Pool)
services/gpu-service/main.go:57
↓ 1 callersFunctionNewManager
NewManager wires the on-chain signer and the HTTP client. challengeSeconds is the optimistic challenge window (default 1h, the protocol minimum).
services/billing-payment-service/internal/covenant/manager.go:29
↓ 1 callersFunctionNewOryKratosService
NewOryKratosService creates a new Ory Kratos service
services/ory-kratos-integration/main.go:103
↓ 1 callersFunctionNewRedisCacheService
NewRedisCacheService creates a new Redis cache service
services/redis-cache-service/main.go:136
↓ 1 callersFunctionNewRentalService
(db *pgxpool.Pool)
services/rental-service/main.go:41
↓ 1 callersFunctionNewSigner
NewSigner builds an on-chain signer. rpcURL is the Solana RPC, key is the platform keypair, programID and usdcMint come from config.
services/billing-payment-service/internal/covenant/onchain.go:75
↓ 1 callersFunctionNewStructuredLogger
NewStructuredLogger returns a middleware that logs request details using Zap.
services/api-gateway/cmd/main.go:255
↓ 1 callersFunctionNewStructuredLogger
NewStructuredLogger returns a middleware that logs request details using Zap. (Identical to the one in api-gateway, maybe move to a shared lib later?)
services/provider-registry-service/cmd/main.go:241
↓ 1 callersFunctionNewStructuredLogger
NewStructuredLogger returns a middleware that logs request details using Zap.
services/scheduler-orchestrator-service/cmd/main.go:291
↓ 1 callersMethodOpenRentalJob
OpenRentalJob locks `amount` USDC in a Covenant escrow for a fixed-duration rental, then indexes it. Phase 1: poster = platform (custodial), amount =
services/billing-payment-service/internal/covenant/manager.go:68
↓ 1 callersMethodOptionalSessionMiddleware
OptionalSessionMiddleware validates sessions but doesn't require authentication
services/ory-kratos-integration/main.go:165
↓ 1 callersMethodProcessDeposit
ProcessDeposit processes a USDC deposit
services/billing-payment-service/internal/service/billing.go:591
↓ 1 callersMethodProcessWithdrawal
ProcessWithdrawal processes a USDC withdrawal
services/billing-payment-service/internal/service/billing.go:650
↓ 1 callersMethodPublishStatus
(statusUpdate *models.TaskStatusUpdate)
clients/provider-daemon/internal/tasks/handler.go:31
↓ 1 callersMethodRaiseDispute
RaiseDispute opens a dispute on a delivered job, posting a bond from the platform (poster). reasonHash is the SHA-256 of the dispute reason; the meter
services/billing-payment-service/internal/covenant/onchain.go:357
↓ 1 callersMethodRefreshToken
RefreshToken handles token refresh
services/auth-service/internal/handlers/login.go:266
↓ 1 callersMethodRefreshTokens
RefreshTokens generates new tokens using a valid refresh token
services/auth-service/pkg/jwt/jwt.go:163
↓ 1 callersMethodRegister
Register handles user registration
services/auth-service/internal/handlers/registration.go:89
↓ 1 callersMethodRegister
Register registers the device plugin with kubelet
services/dantegpu-device-plugin/main.go:280
↓ 1 callersMethodRegisterRoutes
RegisterRoutes registers the storage API routes with the given router.
services/storage-service/internal/api/handlers.go:38
↓ 1 callersMethodRoutes
Routes defines all HTTP routes for the provider service.
services/provider-registry-service/internal/handlers/provider.go:50
↓ 1 callersMethodSaveJob
SaveJob saves the complete state of a job. This can be used for initial creation or full updates.
services/scheduler-orchestrator-service/internal/store/jobstore.go:13
↓ 1 callersMethodSend2FACodeEmail
(ctx context.Context, email, code, firstName string)
services/auth-service/internal/handlers/registration.go:75
↓ 1 callersMethodSendLoginAlertEmail
(ctx context.Context, email, firstName, ipAddress, location string)
services/auth-service/internal/handlers/registration.go:76
↓ 1 callersMethodSendPasswordResetEmail
(ctx context.Context, email, token, firstName string)
services/auth-service/internal/handlers/registration.go:73
↓ 1 callersMethodSendSMS
(ctx context.Context, phone, message string)
services/auth-service/internal/handlers/two_factor.go:60
↓ 1 callersMethodSendUsageUpdate
SendUsageUpdate sends real-time usage data to the billing service
clients/provider-daemon/internal/billing/client.go:96
↓ 1 callersMethodSessionMiddleware
SessionMiddleware validates user sessions using Ory Kratos
services/ory-kratos-integration/main.go:126
← previousnext →201–300 of 1,089, ranked by callers