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
Function
AppShell
()
clients/console/src/components/layout/AppShell.tsx:8
Function
AuthProvider
({ children }: { children: ReactNode })
clients/console/src/providers/AuthProvider.tsx:26
Function
AuthShell
({ children }: { children: ReactNode })
clients/console/src/components/layout/AuthShell.tsx:7
Method
Authenticate
Authenticate validates JWT token and adds user info to context
services/auth-service/internal/middleware/auth.go:28
Function
Authenticator
Authenticator provides a middleware for JWT authentication. It needs the logger and JWT secret key.
services/api-gateway/internal/middleware/auth.go:14
Function
Badge
({ children, tone = "neutral", className, dot, }: { children: ReactNode; tone?: Tone; className?
clients/console/src/components/ui/Badge.tsx:15
Method
Bind
Bind implements the bind extender endpoint
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:173
Function
BuildURL
BuildURL joins a base URL and a path safely.
services/api-gateway/internal/upstream/upstream.go:117
Function
CORS
CORS middleware to handle Cross-Origin Resource Sharing
services/api-gateway/internal/middleware/cors.go:8
Function
CORSWithOrigins
CORSWithOrigins allows specific origins
services/api-gateway/internal/middleware/cors.go:32
Function
CalculatePricing
CalculatePricing handles pricing calculation requests
services/billing-payment-service/internal/handlers/billing.go:205
Method
CalculatePricing
CalculatePricing calculates pricing for specific GPU requirements
services/api-gateway/internal/billing/client.go:282
Method
CancelJob
CancelJob handles requests to cancel a running job. NOTE: Similar to GetJobStatus, this is a placeholder. Cancellation likely involves sending a comma
services/api-gateway/internal/handlers/job.go:149
Function
Card
({ className, hover, ...props }: CardProps)
clients/console/src/components/ui/Card.tsx:8
Function
CardBody
({ className, ...props }: HTMLAttributes<HTMLDivElement>)
clients/console/src/components/ui/Card.tsx:34
Function
CardHeader
({ title, description, action, className, }: { title: ReactNode; description?: ReactNode; action
clients/console/src/components/ui/Card.tsx:12
Method
ChangePassword
ChangePassword changes password for authenticated user
services/auth-service/internal/handlers/password_reset.go:282
Method
CheckRateLimit
Rate Limiting Methods CheckRateLimit checks and updates rate limit for user/endpoint
services/redis-cache-service/main.go:320
Method
CheckSessionStatus
CheckSessionStatus checks if a session is still considered active by the billing service. This might be useful for the daemon to periodically verify i
clients/provider-daemon/internal/billing/client.go:272
Method
CleanupExpiredSessions
CleanupExpiredSessions removes expired sessions (called by background job)
services/auth-service/internal/session/redis_store.go:226
Method
Close
Close cleans up any resources used by the store
services/provider-registry-service/internal/store/providerstore.go:40
Method
Close
Close releases any resources. For this implementation, there are no external resources to release.
services/provider-registry-service/internal/store/memory.go:35
Method
Close
Close closes the database connection pool.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:353
Method
Close
Close closes the Solana client connections
services/billing-payment-service/internal/solana/client.go:381
Function
CodeBlock
({ code }: { code: string })
clients/console/src/pages/ProviderOnboarding.tsx:109
Function
Connect
Connect establishes a connection to the Consul agent.
services/api-gateway/internal/consul/client.go:11
Function
Connect
Connect establishes a connection to the NATS server. It takes the NATS server address and a logger.
services/api-gateway/internal/nats/client.go:13
Function
Connect
Connect establishes a connection to the Consul agent. (We already defined this in the api-gateway, should be moved to shared lib later)
services/provider-registry-service/internal/consul/registration.go:17
Function
Connect
Connect establishes a connection to the Consul agent.
services/scheduler-orchestrator-service/internal/consul/registration.go:14
Function
Connect
Connect establishes a connection to the NATS server with specific options tailored for the scheduler-orchestrator service (e.g., robust reconnect logi
services/scheduler-orchestrator-service/internal/nats/client.go:13
Function
ConnectJetStream
ConnectJetStream establishes a JetStream context from a NATS connection. The scheduler will likely use JetStream for durable job queues.
services/scheduler-orchestrator-service/internal/nats/client.go:55
Function
CorrelationID
CorrelationID is middleware that injects a correlation ID into the context
services/provider-registry-service/internal/middleware/context.go:12
Function
CostMeter
({ startedAt, rateUsdcHour, backendCostUsdc, running }: CostMeterProps)
clients/console/src/components/CostMeter.tsx:19
Method
CountUserSessions
CountUserSessions counts active sessions for a user
services/auth-service/internal/session/redis_store.go:214
Method
Create
(ctx context.Context, userID, sessionID string, expiresAt time.Time)
services/auth-service/internal/handlers/login_test.go:296
Method
CreateAPIKey
CreateAPIKey creates a new API key
services/auth-service/internal/handlers/api_keys.go:49
Method
CreateBillingRecord
Billing Record operations CreateBillingRecord creates a new billing record
services/billing-payment-service/internal/store/postgres.go:508
Method
CreateLoginFlow
CreateLoginFlow creates a new login flow
services/ory-kratos-integration/main.go:356
Method
CreateLogoutFlow
CreateLogoutFlow creates a new logout flow
services/ory-kratos-integration/main.go:402
Method
CreateRegistrationFlow
CreateRegistrationFlow creates a new registration flow
services/ory-kratos-integration/main.go:379
Method
CreateSettingsFlow
CreateSettingsFlow creates a new settings flow
services/ory-kratos-integration/main.go:424
Function
CreateWallet
CreateWallet handles wallet creation requests
services/billing-payment-service/internal/handlers/wallet.go:17
Method
CreateWallet
CreateWallet handles wallet creation requests
services/api-gateway/internal/handlers/billing.go:34
Method
CreateWallet
CreateWallet creates a new dGPU token wallet
services/api-gateway/internal/billing/client.go:106
Method
CreateWallet
Wallet Management CreateWallet creates a new USDC wallet for a user or provider
services/billing-payment-service/internal/service/billing.go:69
Method
DBOperation
DBOperation logs a database operation with details
services/provider-registry-service/internal/logging/context.go:100
Function
Dashboard
()
clients/console/src/pages/Dashboard.tsx:18
Function
DefaultRetryConfig
DefaultRetryConfig returns a default retry configuration
services/provider-registry-service/internal/retryer/retryer.go:24
Method
Delete
Delete deletes an object from the specified bucket. If bucketName is empty, the default bucket is used.
services/storage-service/internal/storage/minio.go:177
Method
Delete
Delete deletes a session
services/auth-service/internal/session/redis_store.go:107
Method
Delete
(ctx context.Context, sessionID string)
services/auth-service/internal/handlers/login_test.go:304
Method
DeleteAllUserSessions
DeleteAllUserSessions deletes all sessions for a user
services/auth-service/internal/session/redis_store.go:131
Method
DeleteAllUserSessions
(ctx context.Context, userID string)
services/auth-service/internal/handlers/login_test.go:308
Method
DeleteJob
DeleteJob removes a job from the store (e.g., after successful completion and archival, or for cleanup). This might be a less frequently used operatio
services/scheduler-orchestrator-service/internal/store/jobstore.go:32
Method
DeleteJob
DeleteJob removes a job from the store.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:337
Method
DeleteProvider
DeleteProvider removes a provider from the system
services/provider-registry-service/internal/store/providerstore.go:30
Method
DeleteProvider
DeleteProvider removes a provider from the database.
services/provider-registry-service/internal/store/postgres_providerstore.go:615
Method
DeleteProvider
DeleteProvider removes a provider from the store.
services/provider-registry-service/internal/store/memory.go:166
Function
DepositTokens
DepositTokens handles token deposit requests
services/billing-payment-service/internal/handlers/wallet.go:68
Method
DepositTokens
DepositTokens handles token deposit requests
services/api-gateway/internal/handlers/billing.go:76
Method
DeregisterProvider
DeregisterProvider handles provider deregistration.
services/provider-registry-service/internal/handlers/provider.go:304
Function
DeregisterService
DeregisterService deregisters the service from Consul. Typically called during graceful shutdown.
services/scheduler-orchestrator-service/internal/consul/registration.go:97
Function
Detail
({ icon, label, value, mono, }: { icon: React.ReactNode; label: string; value: string; mono?:
clients/console/src/pages/RentalSession.tsx:189
Method
Disable2FA
Disable2FA disables 2FA
services/auth-service/internal/handlers/two_factor.go:323
Function
DiscoverService
DiscoverService finds healthy instances of a service registered in Consul.
services/api-gateway/internal/consul/client.go:35
Function
DiscoverService
DiscoverService finds healthy instances of a service registered in Consul.
services/scheduler-orchestrator-service/internal/consul/registration.go:109
Function
DisputeSession
DisputeSession handles opening a Covenant dispute on a rental session.
services/billing-payment-service/internal/handlers/billing.go:18
Method
Download
Download downloads an object from the specified bucket. If bucketName is empty, the default bucket is used.
services/storage-service/internal/storage/minio.go:138
Function
EmptyState
({ icon, title, description, action, }: { icon?: ReactNode; title: string; description?: string;
clients/console/src/components/ui/EmptyState.tsx:3
Method
Enable2FA
Enable2FA initiates 2FA setup
services/auth-service/internal/handlers/two_factor.go:75
Function
EndRentalSession
EndRentalSession handles rental session end requests
services/billing-payment-service/internal/handlers/billing.go:70
Method
EndSession
EndSession ends a rental session
services/scheduler-orchestrator-service/internal/billing/integration.go:137
Function
EnsureStream
EnsureStream checks if a stream with the given configuration exists, and creates it if it doesn't.
services/scheduler-orchestrator-service/internal/nats/client.go:68
Method
Error
Error implements the error interface
services/provider-registry-service/internal/errors/errors.go:82
Method
EstimateJobCost
EstimateJobCost estimates the cost of a GPU rental job
services/api-gateway/internal/handlers/billing.go:211
Method
EstimateJobCost
EstimateJobCost estimates the cost of a job based on requirements
services/scheduler-orchestrator-service/internal/billing/integration.go:239
Method
Execute
Execute runs a script defined in the task's parameters. It expects task.JobParams to contain: - "script_content": string (the script) - "script_interp
clients/provider-daemon/internal/executor/executor.go:57
Method
Execute
Execute runs a task in a Docker container based on task.JobParams. Expected JobParams: - "docker_image": string (e.g., "ubuntu:latest", "nvidia/cuda:1
clients/provider-daemon/internal/executor/executor.go:204
Method
ExtendExpiration
ExtendExpiration extends the expiration time of a session
services/auth-service/internal/session/redis_store.go:202
Function
Feature
({ icon, children }: { icon: ReactNode; children: ReactNode })
clients/console/src/components/layout/AuthShell.tsx:50
Function
Field
({ icon, label, value, inline, }: { icon: React.ReactNode; label: string; value: string; inlin
clients/console/src/pages/Settings.tsx:94
Method
Filter
Filter implements the filter extender endpoint
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:92
Method
Finalize
Finalize releases the escrow to the taker after the challenge window. This is the provider payout, executed on-chain. crank is the platform (payer).
services/billing-payment-service/internal/covenant/onchain.go:315
Function
Forward
Forward proxies the incoming request to targetURL, preserving method, body, and Authorization header, then copies the upstream status and body back to
services/api-gateway/internal/upstream/upstream.go:20
Function
FromInternalJobRepresentation
FromInternalJobRepresentation converts an InternalJobRepresentation to a JobRecord for database storage.
services/scheduler-orchestrator-service/internal/models/job_record.go:101
Function
FullPageSpinner
({ label }: { label?: string })
clients/console/src/components/ui/Spinner.tsx:8
Function
GenerateJWT
GenerateJWT generates a new JWT token for a given user. It uses the secret key and expiration duration from the configuration.
services/api-gateway/internal/auth/jwt.go:27
Function
GenerateServiceID
Helper function to generate a unique Service ID for Consul
services/provider-registry-service/internal/config/config.go:122
Function
GenerateServiceID
(prefix string)
services/scheduler-orchestrator-service/internal/config/config.go:179
Method
GetActiveJobsForCLI
GetActiveJobsForCLI retrieves the list of currently active jobs in a CLI-friendly format.
clients/provider-daemon/internal/tasks/handler.go:253
Method
GetActiveSessions
GetActiveSessions returns all active sessions for a user
services/auth-service/internal/handlers/login_helpers.go:236
Method
GetActiveSessionsByUser
GetActiveSessionsByUser retrieves active sessions for a user
services/billing-payment-service/internal/store/postgres.go:392
Method
GetAvailableGPUs
GetAvailableGPUs returns list of available GPU IDs
services/redis-cache-service/main.go:204
Method
GetBalance
GetBalance returns a wallet's USDC balance as Covenant sees it (GET /api/balance/{wallet}). Pure read.
services/billing-payment-service/internal/covenant/client.go:173
Method
GetBillingConfig
GetBillingConfig returns billing service configuration
services/billing-payment-service/internal/config/config.go:206
Function
GetBillingHistory
GetBillingHistory handles billing history requests
services/billing-payment-service/internal/handlers/billing.go:163
Method
GetBillingHistory
GetBillingHistory retrieves billing history for a user or provider
services/billing-payment-service/internal/service/billing.go:581
Method
GetCacheStats
GetCacheStats returns cache statistics
services/redis-cache-service/main.go:401
Method
GetClientCount
GetClientCount returns number of connected clients
services/api-gateway/internal/websocket/hub.go:112
Function
GetCurrentUsage
GetCurrentUsage handles current usage requests for active sessions
services/billing-payment-service/internal/handlers/billing.go:137
← previous
next →
601–700 of 1,089, ranked by callers