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
CalculatePricing
CalculatePricing handles pricing calculation requests
services/api-gateway/internal/handlers/billing.go:145
↓ 1 callers
Method
CalculatePricing
CalculatePricing calculates pricing for GPU rental requirements
services/billing-payment-service/internal/service/billing.go:739
↓ 1 callers
Method
CancelJob
CancelJob cancels a running job
cmd/rental/main.go:971
↓ 1 callers
Method
CheckUserBalance
CheckUserBalance checks if a user has sufficient balance for a session
services/scheduler-orchestrator-service/internal/billing/integration.go:180
↓ 1 callers
Method
Close
Close closes the database connection pool.
services/provider-registry-service/internal/store/postgres_providerstore.go:731
↓ 1 callers
Method
Close
Close closes the Redis connection
services/redis-cache-service/main.go:438
↓ 1 callers
Method
CloseRentalJob
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 callers
Method
CreateAssociatedTokenAccount
CreateAssociatedTokenAccount creates an associated token account for a wallet
services/billing-payment-service/internal/solana/client.go:304
↓ 1 callers
Method
CreateJob
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 callers
Function
DefaultSecretLoader
DefaultSecretLoader returns a chained secret loader with environment variables and an optional secrets file
services/provider-registry-service/internal/config/secrets.go:108
↓ 1 callers
Method
DeleteProvider
(ctx context.Context, id uuid.UUID)
services/provider-registry-service/internal/handlers/provider.go:25
↓ 1 callers
Method
DepositTokens
DepositTokens processes a dGPU token deposit
services/api-gateway/internal/billing/client.go:172
↓ 1 callers
Method
DetectGPUsOnce
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 callers
Method
DisputeRentalJob
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 callers
Method
Download
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 callers
Method
DurationHours
DurationHours returns the duration in hours
services/billing-payment-service/internal/models/billing.go:70
↓ 1 callers
Function
EnrichLoggerWithContext
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 callers
Method
EnsureBucket
EnsureBucket checks if a bucket exists, and creates it if it doesn't.
services/storage-service/internal/storage/interface.go:38
↓ 1 callers
Method
EnsureBucket
EnsureBucket creates a bucket if it does not already exist.
services/storage-service/internal/storage/minio.go:66
↓ 1 callers
Method
EstimateJobCost
EstimateJobCost estimates the cost of running a job
cmd/rental/main.go:881
↓ 1 callers
Method
ExtractClaims
ExtractClaims extracts claims from a token without validation (for debugging)
services/auth-service/pkg/jwt/jwt.go:173
↓ 1 callers
Method
Finalize
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 callers
Method
GenerateTokenPair
GenerateTokenPair generates both access and refresh tokens
services/auth-service/pkg/jwt/jwt.go:58
↓ 1 callers
Method
GenerateTokenPair
(userID, email string, roles []string)
services/auth-service/internal/handlers/login_test.go:275
↓ 1 callers
Function
GetAbsPath
GetAbsPath returns the absolute path for a given relative path to the config file.
services/storage-service/internal/config/config.go:237
↓ 1 callers
Method
GetActiveSubscriptionCount
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 callers
Method
GetConnectionURL
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 callers
Method
GetCurrentUsage
GetCurrentUsage gets current usage information for a session
clients/provider-daemon/internal/billing/client.go:131
↓ 1 callers
Function
GetDatabaseCredentials
GetDatabaseCredentials retrieves database credentials from the secret loader
services/provider-registry-service/internal/config/secrets.go:129
↓ 1 callers
Method
GetDatabaseURL
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 callers
Method
GetFinancialSummary
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 callers
Method
GetJob
GetJob retrieves a job by its ID.
services/scheduler-orchestrator-service/internal/store/jobstore.go:16
↓ 1 callers
Method
GetJob
GetJob retrieves a job by its ID from the database.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:140
↓ 1 callers
Method
GetLastErrorStr
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 callers
Method
GetMetrics
GetMetrics gets real-time metrics for all GPUs
clients/provider-daemon/internal/gpu/detector.go:487
↓ 1 callers
Method
GetObjectInfo
GetObjectInfo retrieves metadata for a specific object.
services/storage-service/internal/storage/interface.go:35
↓ 1 callers
Method
GetPlatformFeePercent
GetPlatformFeePercent returns the platform fee percentage
services/billing-payment-service/internal/pricing/engine.go:360
↓ 1 callers
Method
GetPowerMultiplier
GetPowerMultiplier returns the power consumption multiplier
services/billing-payment-service/internal/pricing/engine.go:355
↓ 1 callers
Method
GetPresignedURL
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 callers
Method
GetProvider
(ctx context.Context, id uuid.UUID)
services/provider-registry-service/internal/handlers/provider.go:22
↓ 1 callers
Method
GetProviderEarnings
GetProviderEarnings calculates provider earnings for a given period
services/billing-payment-service/internal/store/postgres.go:614
↓ 1 callers
Method
GetProviderRates
GetProviderRates proxies to the billing service for a provider's configured hourly rates.
services/api-gateway/internal/handlers/billing.go:317
↓ 1 callers
Function
GetRequestID
GetRequestID retrieves the request ID from the context
services/provider-registry-service/internal/logging/context.go:52
↓ 1 callers
Method
GetSupportedGPUModels
GetSupportedGPUModels returns a list of supported GPU models and their base rates
services/billing-payment-service/internal/pricing/engine.go:339
↓ 1 callers
Method
GetTokenBalance
GetTokenBalance gets the USDC balance for a given wallet address
services/billing-payment-service/internal/solana/client.go:138
↓ 1 callers
Method
GetTokenExpiration
GetTokenExpiration returns the expiration time from a token
services/auth-service/pkg/jwt/jwt.go:212
↓ 1 callers
Method
GetVRAMRatePerGB
GetVRAMRatePerGB returns the VRAM rate per GB per hour
services/billing-payment-service/internal/pricing/engine.go:350
↓ 1 callers
Method
HealthCheck
Health check
services/redis-cache-service/main.go:433
↓ 1 callers
Method
Healthy
()
clients/provider-daemon/internal/tasks/handler.go:37
↓ 1 callers
Method
Heartbeat
Heartbeat updates the provider's last seen time.
services/provider-registry-service/internal/models/provider.go:85
↓ 1 callers
Method
IndexCreatedJob
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 callers
Method
Initialize
Initialize sets up the PostgreSQL tables if they don't exist.
services/provider-registry-service/internal/store/postgres_providerstore.go:37
↓ 1 callers
Method
Initialize
Initialize creates the necessary 'jobs' table if it doesn't already exist.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:34
↓ 1 callers
Method
Initialize
Initialize sets up the rental client
cmd/rental/main.go:680
↓ 1 callers
Method
Initialize
Initialize sets up the GPU provider
cmd/provider/main.go:2083
↓ 1 callers
Method
IsConnected
IsConnected checks if the NATS client is currently connected.
clients/provider-daemon/internal/nats/client.go:289
↓ 1 callers
Function
IsTransientError
IsTransientError determines if an error is likely transient and can be retried
services/provider-registry-service/internal/store/db_errors.go:31
↓ 1 callers
Function
IsTransientError
IsTransientError determines if an error is a transient database error
services/provider-registry-service/internal/retryer/retryer.go:35
↓ 1 callers
Method
ListAvailableProviders
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 callers
Method
ListJobs
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 callers
Method
ListProviders
(ctx context.Context, filters map[string]interface{})
services/provider-registry-service/internal/handlers/provider.go:23
↓ 1 callers
Method
LockFunds
LockFunds locks the specified amount for a session
services/billing-payment-service/internal/models/wallet.go:50
↓ 1 callers
Method
Login
Login handles user login
services/auth-service/internal/handlers/login.go:85
↓ 1 callers
Function
MinBond
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 callers
Method
Monitor
Monitor starts monitoring a session and sends periodic usage updates
clients/provider-daemon/internal/billing/client.go:158
↓ 1 callers
Function
NewAPIGateway
(db *sql.DB)
services/api-gateway/main-simple.go:66
↓ 1 callers
Function
NewAuthService
(db *sql.DB, jwtSecret string)
services/auth-service/main-sqlite.go:59
↓ 1 callers
Function
NewAuthService
(db *pgxpool.Pool, jwtSecret string)
services/auth-service/main.go:48
↓ 1 callers
Function
NewDanteGPUDevicePlugin
NewDanteGPUDevicePlugin creates a new device plugin
services/dantegpu-device-plugin/main.go:37
↓ 1 callers
Function
NewGPUMonitoringService
NewGPUMonitoringService creates a new GPU monitoring service
services/gpu-monitoring-service/main.go:94
↓ 1 callers
Function
NewGPUProvider
NewGPUProvider creates a new GPU provider instance with comprehensive capabilities
cmd/provider/main.go:671
↓ 1 callers
Function
NewGPURentalClient
NewGPURentalClient creates a comprehensive GPU rental client
cmd/rental/main.go:379
↓ 1 callers
Function
NewGPUService
(db *pgxpool.Pool)
services/gpu-service/main.go:57
↓ 1 callers
Function
NewManager
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 callers
Function
NewOryKratosService
NewOryKratosService creates a new Ory Kratos service
services/ory-kratos-integration/main.go:103
↓ 1 callers
Function
NewRedisCacheService
NewRedisCacheService creates a new Redis cache service
services/redis-cache-service/main.go:136
↓ 1 callers
Function
NewRentalService
(db *pgxpool.Pool)
services/rental-service/main.go:41
↓ 1 callers
Function
NewSigner
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 callers
Function
NewStructuredLogger
NewStructuredLogger returns a middleware that logs request details using Zap.
services/api-gateway/cmd/main.go:255
↓ 1 callers
Function
NewStructuredLogger
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 callers
Function
NewStructuredLogger
NewStructuredLogger returns a middleware that logs request details using Zap.
services/scheduler-orchestrator-service/cmd/main.go:291
↓ 1 callers
Method
OpenRentalJob
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 callers
Method
OptionalSessionMiddleware
OptionalSessionMiddleware validates sessions but doesn't require authentication
services/ory-kratos-integration/main.go:165
↓ 1 callers
Method
ProcessDeposit
ProcessDeposit processes a USDC deposit
services/billing-payment-service/internal/service/billing.go:591
↓ 1 callers
Method
ProcessWithdrawal
ProcessWithdrawal processes a USDC withdrawal
services/billing-payment-service/internal/service/billing.go:650
↓ 1 callers
Method
PublishStatus
(statusUpdate *models.TaskStatusUpdate)
clients/provider-daemon/internal/tasks/handler.go:31
↓ 1 callers
Method
RaiseDispute
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 callers
Method
RefreshToken
RefreshToken handles token refresh
services/auth-service/internal/handlers/login.go:266
↓ 1 callers
Method
RefreshTokens
RefreshTokens generates new tokens using a valid refresh token
services/auth-service/pkg/jwt/jwt.go:163
↓ 1 callers
Method
Register
Register handles user registration
services/auth-service/internal/handlers/registration.go:89
↓ 1 callers
Method
Register
Register registers the device plugin with kubelet
services/dantegpu-device-plugin/main.go:280
↓ 1 callers
Method
RegisterRoutes
RegisterRoutes registers the storage API routes with the given router.
services/storage-service/internal/api/handlers.go:38
↓ 1 callers
Method
Routes
Routes defines all HTTP routes for the provider service.
services/provider-registry-service/internal/handlers/provider.go:50
↓ 1 callers
Method
SaveJob
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 callers
Method
Send2FACodeEmail
(ctx context.Context, email, code, firstName string)
services/auth-service/internal/handlers/registration.go:75
↓ 1 callers
Method
SendLoginAlertEmail
(ctx context.Context, email, firstName, ipAddress, location string)
services/auth-service/internal/handlers/registration.go:76
↓ 1 callers
Method
SendPasswordResetEmail
(ctx context.Context, email, token, firstName string)
services/auth-service/internal/handlers/registration.go:73
↓ 1 callers
Method
SendSMS
(ctx context.Context, phone, message string)
services/auth-service/internal/handlers/two_factor.go:60
↓ 1 callers
Method
SendUsageUpdate
SendUsageUpdate sends real-time usage data to the billing service
clients/provider-daemon/internal/billing/client.go:96
↓ 1 callers
Method
SessionMiddleware
SessionMiddleware validates user sessions using Ory Kratos
services/ory-kratos-integration/main.go:126
← previous
next →
201–300 of 1,089, ranked by callers