MCPcopy Create free account

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

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

FunctionAppShell
()
clients/console/src/components/layout/AppShell.tsx:8
FunctionAuthProvider
({ children }: { children: ReactNode })
clients/console/src/providers/AuthProvider.tsx:26
FunctionAuthShell
({ children }: { children: ReactNode })
clients/console/src/components/layout/AuthShell.tsx:7
MethodAuthenticate
Authenticate validates JWT token and adds user info to context
services/auth-service/internal/middleware/auth.go:28
FunctionAuthenticator
Authenticator provides a middleware for JWT authentication. It needs the logger and JWT secret key.
services/api-gateway/internal/middleware/auth.go:14
FunctionBadge
({ children, tone = "neutral", className, dot, }: { children: ReactNode; tone?: Tone; className?
clients/console/src/components/ui/Badge.tsx:15
MethodBind
Bind implements the bind extender endpoint
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:173
FunctionBuildURL
BuildURL joins a base URL and a path safely.
services/api-gateway/internal/upstream/upstream.go:117
FunctionCORS
CORS middleware to handle Cross-Origin Resource Sharing
services/api-gateway/internal/middleware/cors.go:8
FunctionCORSWithOrigins
CORSWithOrigins allows specific origins
services/api-gateway/internal/middleware/cors.go:32
FunctionCalculatePricing
CalculatePricing handles pricing calculation requests
services/billing-payment-service/internal/handlers/billing.go:205
MethodCalculatePricing
CalculatePricing calculates pricing for specific GPU requirements
services/api-gateway/internal/billing/client.go:282
MethodCancelJob
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
FunctionCard
({ className, hover, ...props }: CardProps)
clients/console/src/components/ui/Card.tsx:8
FunctionCardBody
({ className, ...props }: HTMLAttributes<HTMLDivElement>)
clients/console/src/components/ui/Card.tsx:34
FunctionCardHeader
({ title, description, action, className, }: { title: ReactNode; description?: ReactNode; action
clients/console/src/components/ui/Card.tsx:12
MethodChangePassword
ChangePassword changes password for authenticated user
services/auth-service/internal/handlers/password_reset.go:282
MethodCheckRateLimit
Rate Limiting Methods CheckRateLimit checks and updates rate limit for user/endpoint
services/redis-cache-service/main.go:320
MethodCheckSessionStatus
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
MethodCleanupExpiredSessions
CleanupExpiredSessions removes expired sessions (called by background job)
services/auth-service/internal/session/redis_store.go:226
MethodClose
Close cleans up any resources used by the store
services/provider-registry-service/internal/store/providerstore.go:40
MethodClose
Close releases any resources. For this implementation, there are no external resources to release.
services/provider-registry-service/internal/store/memory.go:35
MethodClose
Close closes the database connection pool.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:353
MethodClose
Close closes the Solana client connections
services/billing-payment-service/internal/solana/client.go:381
FunctionCodeBlock
({ code }: { code: string })
clients/console/src/pages/ProviderOnboarding.tsx:109
FunctionConnect
Connect establishes a connection to the Consul agent.
services/api-gateway/internal/consul/client.go:11
FunctionConnect
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
FunctionConnect
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
FunctionConnect
Connect establishes a connection to the Consul agent.
services/scheduler-orchestrator-service/internal/consul/registration.go:14
FunctionConnect
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
FunctionConnectJetStream
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
FunctionCorrelationID
CorrelationID is middleware that injects a correlation ID into the context
services/provider-registry-service/internal/middleware/context.go:12
FunctionCostMeter
({ startedAt, rateUsdcHour, backendCostUsdc, running }: CostMeterProps)
clients/console/src/components/CostMeter.tsx:19
MethodCountUserSessions
CountUserSessions counts active sessions for a user
services/auth-service/internal/session/redis_store.go:214
MethodCreate
(ctx context.Context, userID, sessionID string, expiresAt time.Time)
services/auth-service/internal/handlers/login_test.go:296
MethodCreateAPIKey
CreateAPIKey creates a new API key
services/auth-service/internal/handlers/api_keys.go:49
MethodCreateBillingRecord
Billing Record operations CreateBillingRecord creates a new billing record
services/billing-payment-service/internal/store/postgres.go:508
MethodCreateLoginFlow
CreateLoginFlow creates a new login flow
services/ory-kratos-integration/main.go:356
MethodCreateLogoutFlow
CreateLogoutFlow creates a new logout flow
services/ory-kratos-integration/main.go:402
MethodCreateRegistrationFlow
CreateRegistrationFlow creates a new registration flow
services/ory-kratos-integration/main.go:379
MethodCreateSettingsFlow
CreateSettingsFlow creates a new settings flow
services/ory-kratos-integration/main.go:424
FunctionCreateWallet
CreateWallet handles wallet creation requests
services/billing-payment-service/internal/handlers/wallet.go:17
MethodCreateWallet
CreateWallet handles wallet creation requests
services/api-gateway/internal/handlers/billing.go:34
MethodCreateWallet
CreateWallet creates a new dGPU token wallet
services/api-gateway/internal/billing/client.go:106
MethodCreateWallet
Wallet Management CreateWallet creates a new USDC wallet for a user or provider
services/billing-payment-service/internal/service/billing.go:69
MethodDBOperation
DBOperation logs a database operation with details
services/provider-registry-service/internal/logging/context.go:100
FunctionDashboard
()
clients/console/src/pages/Dashboard.tsx:18
FunctionDefaultRetryConfig
DefaultRetryConfig returns a default retry configuration
services/provider-registry-service/internal/retryer/retryer.go:24
MethodDelete
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
MethodDelete
Delete deletes a session
services/auth-service/internal/session/redis_store.go:107
MethodDelete
(ctx context.Context, sessionID string)
services/auth-service/internal/handlers/login_test.go:304
MethodDeleteAllUserSessions
DeleteAllUserSessions deletes all sessions for a user
services/auth-service/internal/session/redis_store.go:131
MethodDeleteAllUserSessions
(ctx context.Context, userID string)
services/auth-service/internal/handlers/login_test.go:308
MethodDeleteJob
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
MethodDeleteJob
DeleteJob removes a job from the store.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:337
MethodDeleteProvider
DeleteProvider removes a provider from the system
services/provider-registry-service/internal/store/providerstore.go:30
MethodDeleteProvider
DeleteProvider removes a provider from the database.
services/provider-registry-service/internal/store/postgres_providerstore.go:615
MethodDeleteProvider
DeleteProvider removes a provider from the store.
services/provider-registry-service/internal/store/memory.go:166
FunctionDepositTokens
DepositTokens handles token deposit requests
services/billing-payment-service/internal/handlers/wallet.go:68
MethodDepositTokens
DepositTokens handles token deposit requests
services/api-gateway/internal/handlers/billing.go:76
MethodDeregisterProvider
DeregisterProvider handles provider deregistration.
services/provider-registry-service/internal/handlers/provider.go:304
FunctionDeregisterService
DeregisterService deregisters the service from Consul. Typically called during graceful shutdown.
services/scheduler-orchestrator-service/internal/consul/registration.go:97
FunctionDetail
({ icon, label, value, mono, }: { icon: React.ReactNode; label: string; value: string; mono?:
clients/console/src/pages/RentalSession.tsx:189
MethodDisable2FA
Disable2FA disables 2FA
services/auth-service/internal/handlers/two_factor.go:323
FunctionDiscoverService
DiscoverService finds healthy instances of a service registered in Consul.
services/api-gateway/internal/consul/client.go:35
FunctionDiscoverService
DiscoverService finds healthy instances of a service registered in Consul.
services/scheduler-orchestrator-service/internal/consul/registration.go:109
FunctionDisputeSession
DisputeSession handles opening a Covenant dispute on a rental session.
services/billing-payment-service/internal/handlers/billing.go:18
MethodDownload
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
FunctionEmptyState
({ icon, title, description, action, }: { icon?: ReactNode; title: string; description?: string;
clients/console/src/components/ui/EmptyState.tsx:3
MethodEnable2FA
Enable2FA initiates 2FA setup
services/auth-service/internal/handlers/two_factor.go:75
FunctionEndRentalSession
EndRentalSession handles rental session end requests
services/billing-payment-service/internal/handlers/billing.go:70
MethodEndSession
EndSession ends a rental session
services/scheduler-orchestrator-service/internal/billing/integration.go:137
FunctionEnsureStream
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
MethodError
Error implements the error interface
services/provider-registry-service/internal/errors/errors.go:82
MethodEstimateJobCost
EstimateJobCost estimates the cost of a GPU rental job
services/api-gateway/internal/handlers/billing.go:211
MethodEstimateJobCost
EstimateJobCost estimates the cost of a job based on requirements
services/scheduler-orchestrator-service/internal/billing/integration.go:239
MethodExecute
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
MethodExecute
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
MethodExtendExpiration
ExtendExpiration extends the expiration time of a session
services/auth-service/internal/session/redis_store.go:202
FunctionFeature
({ icon, children }: { icon: ReactNode; children: ReactNode })
clients/console/src/components/layout/AuthShell.tsx:50
FunctionField
({ icon, label, value, inline, }: { icon: React.ReactNode; label: string; value: string; inlin
clients/console/src/pages/Settings.tsx:94
MethodFilter
Filter implements the filter extender endpoint
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:92
MethodFinalize
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
FunctionForward
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
FunctionFromInternalJobRepresentation
FromInternalJobRepresentation converts an InternalJobRepresentation to a JobRecord for database storage.
services/scheduler-orchestrator-service/internal/models/job_record.go:101
FunctionFullPageSpinner
({ label }: { label?: string })
clients/console/src/components/ui/Spinner.tsx:8
FunctionGenerateJWT
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
FunctionGenerateServiceID
Helper function to generate a unique Service ID for Consul
services/provider-registry-service/internal/config/config.go:122
FunctionGenerateServiceID
(prefix string)
services/scheduler-orchestrator-service/internal/config/config.go:179
MethodGetActiveJobsForCLI
GetActiveJobsForCLI retrieves the list of currently active jobs in a CLI-friendly format.
clients/provider-daemon/internal/tasks/handler.go:253
MethodGetActiveSessions
GetActiveSessions returns all active sessions for a user
services/auth-service/internal/handlers/login_helpers.go:236
MethodGetActiveSessionsByUser
GetActiveSessionsByUser retrieves active sessions for a user
services/billing-payment-service/internal/store/postgres.go:392
MethodGetAvailableGPUs
GetAvailableGPUs returns list of available GPU IDs
services/redis-cache-service/main.go:204
MethodGetBalance
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
MethodGetBillingConfig
GetBillingConfig returns billing service configuration
services/billing-payment-service/internal/config/config.go:206
FunctionGetBillingHistory
GetBillingHistory handles billing history requests
services/billing-payment-service/internal/handlers/billing.go:163
MethodGetBillingHistory
GetBillingHistory retrieves billing history for a user or provider
services/billing-payment-service/internal/service/billing.go:581
MethodGetCacheStats
GetCacheStats returns cache statistics
services/redis-cache-service/main.go:401
MethodGetClientCount
GetClientCount returns number of connected clients
services/api-gateway/internal/websocket/hub.go:112
FunctionGetCurrentUsage
GetCurrentUsage handles current usage requests for active sessions
services/billing-payment-service/internal/handlers/billing.go:137
← previousnext →601–700 of 1,089, ranked by callers