MCPcopy Create free account

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

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

FunctionNewAPIKeyHandler
NewAPIKeyHandler creates a new API key handler
services/auth-service/internal/handlers/api_keys.go:44
FunctionNewAuthHandler
NewAuthHandler creates a new AuthHandler.
services/api-gateway/internal/handlers/auth.go:21
FunctionNewAuthMiddleware
NewAuthMiddleware creates a new auth middleware
services/auth-service/internal/middleware/auth.go:20
FunctionNewBillingHandler
NewBillingHandler creates a new billing handler
services/api-gateway/internal/handlers/billing.go:25
FunctionNewBillingService
NewBillingService creates a new billing service
services/billing-payment-service/internal/service/billing.go:48
FunctionNewClient
NewClient creates a new billing service client
services/api-gateway/internal/billing/client.go:30
FunctionNewClient
NewClient creates a new billing service client
services/scheduler-orchestrator-service/internal/billing/integration.go:30
FunctionNewClient
NewClient creates a new Provider Registry client.
services/scheduler-orchestrator-service/internal/clients/provider_registry.go:68
FunctionNewClient
NewClient creates a new Solana client for SPL token (USDC) operations
services/billing-payment-service/internal/solana/client.go:52
FunctionNewClient
NewClient creates a new billing service client
clients/provider-daemon/internal/billing/client.go:42
FunctionNewClient
NewClient creates a new NATS client for the provider daemon.
clients/provider-daemon/internal/nats/client.go:30
FunctionNewContextLogger
NewContextLogger creates a new context-aware logger
services/provider-registry-service/internal/logging/context.go:85
FunctionNewCorrelationID
NewCorrelationID generates a new correlation ID if one doesn't exist and returns a context with the correlation ID set
services/provider-registry-service/internal/logging/context.go:35
FunctionNewDatabaseError
NewDatabaseError creates a new DatabaseError
services/provider-registry-service/internal/errors/errors.go:100
FunctionNewDatabaseError
(operation string, cause error)
services/billing-payment-service/internal/models/errors.go:233
FunctionNewDetector
NewDetector creates a new GPU detector
clients/provider-daemon/internal/gpu/detector.go:61
FunctionNewDockerExecutor
NewDockerExecutor creates a new DockerExecutor. It initializes a Docker client, preferring execCfg.DockerEndpoint if provided.
clients/provider-daemon/internal/executor/executor.go:158
FunctionNewEngine
NewEngine creates a new pricing engine
services/billing-payment-service/internal/pricing/engine.go:45
FunctionNewErrorResponse
NewErrorResponse creates a new error response
services/auth-service/internal/handlers/errors.go:134
FunctionNewHandler
NewHandler creates a new task handler.
clients/provider-daemon/internal/tasks/handler.go:54
FunctionNewHealthMonitor
NewHealthMonitor creates a health monitor. interval defaults to 30s and failureThreshold to 3 when non-positive.
clients/provider-daemon/internal/gpu/health.go:30
FunctionNewHub
NewHub creates a new Hub
services/api-gateway/internal/websocket/hub.go:50
FunctionNewInMemoryProviderStore
NewInMemoryProviderStore creates a new in-memory provider store.
services/provider-registry-service/internal/store/memory.go:20
FunctionNewInsufficientFundsError
(required, available string)
services/billing-payment-service/internal/models/errors.go:201
FunctionNewInternalJob
(job Job)
services/scheduler-orchestrator-service/internal/models/job.go:56
FunctionNewJobConsumer
NewJobConsumer creates a new JobConsumer. It will also try to get a JetStream context.
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:35
FunctionNewJobHandler
NewJobHandler creates a new JobHandler.
services/api-gateway/internal/handlers/job.go:28
FunctionNewLogHandler
NewLogHandler creates a new LogHandler.
services/api-gateway/internal/handlers/logs.go:21
FunctionNewManager
NewManager creates a new JWT manager
services/auth-service/pkg/jwt/jwt.go:47
FunctionNewManagerFromConfig
NewManagerFromConfig builds the settlement manager from the covenant config, the Solana RPC URL, and the platform keypair file. If covenant is not con
services/billing-payment-service/internal/covenant/manager.go:42
FunctionNewMinioClient
NewMinioClient creates and returns a new MinIO client.
services/storage-service/internal/storage/minio.go:25
FunctionNewPasswordResetHandler
NewPasswordResetHandler creates a new password reset handler
services/auth-service/internal/handlers/password_reset.go:55
FunctionNewPostgresJobStore
NewPostgresJobStore creates a new PostgresJobStore. It expects a connected pgxpool.Pool.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:26
FunctionNewPostgresProviderStore
NewPostgresProviderStore creates a new PostgresProviderStore.
services/provider-registry-service/internal/store/postgres_providerstore.go:28
FunctionNewPostgresStore
NewPostgresStore creates a new PostgreSQL store
services/billing-payment-service/internal/store/postgres.go:26
FunctionNewProvider
NewProvider creates a new Provider instance with a generated ID and timestamps.
services/provider-registry-service/internal/models/provider.go:61
FunctionNewProviderError
NewProviderError creates a new ProviderError
services/provider-registry-service/internal/errors/errors.go:62
FunctionNewProviderHandler
NewProviderHandler creates a new ProviderHandler with the given dependencies.
services/provider-registry-service/internal/handlers/provider.go:41
FunctionNewProviderNotAvailableError
(providerID string)
services/billing-payment-service/internal/models/errors.go:212
FunctionNewProxyHandler
NewProxyHandler creates a new ProxyHandler.
services/api-gateway/internal/handlers/proxy.go:27
FunctionNewRateLimitMiddleware
NewRateLimitMiddleware creates a new rate limit middleware
services/auth-service/internal/middleware/auth.go:257
FunctionNewRateLimiter
NewRateLimiter creates a new Redis rate limiter
services/auth-service/internal/session/redis_store.go:253
FunctionNewRedisStore
NewRedisStore creates a new Redis session store
services/auth-service/internal/session/redis_store.go:33
FunctionNewRoundRobin
NewRoundRobin creates a new RoundRobin load balancer.
services/api-gateway/internal/loadbalancer/balancer.go:32
FunctionNewSMTPService
NewSMTPService creates a new SMTP email service
services/auth-service/internal/email/smtp_service.go:33
FunctionNewSchedulerExtender
NewSchedulerExtender creates a new Kubernetes Scheduler Extender
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:64
FunctionNewScriptExecutor
NewScriptExecutor creates a new ScriptExecutor.
clients/provider-daemon/internal/executor/executor.go:47
FunctionNewServer
NewServer creates and configures an http.Server. It takes the port (e.g., ":8002"), the main router, and a logger.
services/provider-registry-service/internal/server/server.go:12
FunctionNewServer
NewServer creates and configures a new Server instance for the scheduler-orchestrator. This server will primarily be used for health checks and potent
services/scheduler-orchestrator-service/internal/server/server.go:21
FunctionNewSessionNotFoundError
(sessionID string)
services/billing-payment-service/internal/models/errors.go:207
FunctionNewSolanaError
(operation string, cause error)
services/billing-payment-service/internal/models/errors.go:228
FunctionNewStorageHandler
NewStorageHandler creates a new StorageHandler.
services/storage-service/internal/api/handlers.go:30
FunctionNewTask
NewTask creates a new Task from a Job and an assigned provider ID.
services/scheduler-orchestrator-service/internal/models/task.go:34
FunctionNewTaskStatusUpdate
NewTaskStatusUpdate creates a new TaskStatusUpdate with the current timestamp.
clients/provider-daemon/internal/models/status.go:41
FunctionNewTokenBlacklist
NewTokenBlacklist creates a new token blacklist
services/auth-service/internal/session/redis_store.go:316
FunctionNewTransactionFailedError
(txnID string, cause error)
services/billing-payment-service/internal/models/errors.go:217
FunctionNewTwoFactorHandler
NewTwoFactorHandler creates a new 2FA handler
services/auth-service/internal/handlers/two_factor.go:64
FunctionNewValidationError
(field, message string)
services/billing-payment-service/internal/models/errors.go:222
FunctionNewWalletNotFoundError
Common error constructors
services/billing-payment-service/internal/models/errors.go:196
MethodNext
Next implements the LoadBalancer interface for RoundRobin. It now attempts to determine the scheme (http/https) from Consul data.
services/api-gateway/internal/loadbalancer/balancer.go:38
FunctionNotFound
()
clients/console/src/pages/NotFound.tsx:4
MethodOptionalAuth
OptionalAuth validates token if present but doesn't require it
services/auth-service/internal/middleware/auth.go:180
FunctionPerk
({ icon, title, body }: { icon: React.ReactNode; title: string; body: string })
clients/console/src/pages/ProviderOnboarding.tsx:99
MethodPreStartContainer
PreStartContainer is called before starting a container
services/dantegpu-device-plugin/main.go:178
MethodPrioritize
Prioritize implements the prioritize extender endpoint
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:136
FunctionProcessUsageUpdate
ProcessUsageUpdate handles real-time usage updates from provider daemons
services/billing-payment-service/internal/handlers/billing.go:101
MethodProfile
Profile returns the current user's profile. The Authenticator middleware has already validated the JWT and placed the claims in context; the gateway t
services/api-gateway/internal/handlers/auth.go:39
FunctionProviderConsole
()
clients/console/src/components/ProviderConsole.tsx:18
MethodProviderHeartbeat
ProviderHeartbeat handles heartbeat signals from providers.
services/provider-registry-service/internal/handlers/provider.go:266
FunctionProviderOnboarding
()
clients/console/src/pages/ProviderOnboarding.tsx:31
FunctionPtrStringToTime
PtrStringToTime converts a string pointer in RFC3339 format to a time.Time pointer.
clients/provider-daemon/internal/models/cli_responses.go:95
MethodPublishStatus
(statusUpdate *models.TaskStatusUpdate)
clients/provider-daemon/internal/tasks/handler.go:25
MethodPublishStatus
PublishStatus sends a TaskStatusUpdate to the configured NATS subject.
clients/provider-daemon/internal/nats/client.go:256
FunctionQueryProvider
({ children }: { children: ReactNode })
clients/console/src/providers/QueryProvider.tsx:7
MethodRateLimit
RateLimit applies rate limiting based on IP address
services/auth-service/internal/middleware/auth.go:262
MethodReadPump
ReadPump pumps messages from the websocket connection to the hub
services/api-gateway/internal/websocket/hub.go:133
FunctionRegister
()
clients/console/src/pages/Register.tsx:10
MethodRegister
Register proxies new-user registration to the auth-service, which hashes the password and persists the user.
services/api-gateway/internal/handlers/auth.go:32
MethodRegisterProvider
--- Handler Implementations --- RegisterProvider handles new provider registration.
services/provider-registry-service/internal/handlers/provider.go:90
FunctionRegisterService
RegisterService registers this service instance with Consul.
services/provider-registry-service/internal/consul/registration.go:36
FunctionRegisterService
RegisterService registers this service instance with Consul.
services/scheduler-orchestrator-service/internal/consul/registration.go:33
FunctionRentModal
({ gpu, onClose }: { gpu: GpuListing | null; onClose: () => void })
clients/console/src/components/RentModal.tsx:27
FunctionRentalRow
({ rental }: { rental: LocalRental })
clients/console/src/components/RentalRow.tsx:11
FunctionRentalSession
()
clients/console/src/pages/RentalSession.tsx:33
MethodRequestPasswordReset
RequestPasswordReset initiates password reset process
services/auth-service/internal/handlers/password_reset.go:64
FunctionRequestPayout
RequestPayout handles provider payout requests
services/billing-payment-service/internal/handlers/billing.go:285
MethodRequestProviderPayout
RequestProviderPayout forwards a provider payout request to the billing service, which settles accrued USDC on-chain.
services/api-gateway/internal/handlers/billing.go:340
MethodRequireAnyRole
RequireAnyRole checks if user has any of the specified roles
services/auth-service/internal/middleware/auth.go:121
MethodRequirePermission
RequirePermission checks if user has a specific permission
services/auth-service/internal/middleware/auth.go:154
MethodRequireRole
RequireRole checks if user has a specific role
services/auth-service/internal/middleware/auth.go:93
MethodResendVerification
ResendVerification resends verification email
services/auth-service/internal/handlers/registration.go:359
MethodReset
Reset resets the rate limit for a key
services/auth-service/internal/session/redis_store.go:299
MethodResetPassword
ResetPassword resets password using reset token
services/auth-service/internal/handlers/password_reset.go:156
MethodRevokeAPIKey
RevokeAPIKey revokes an API key
services/auth-service/internal/handlers/api_keys.go:167
MethodRevokeSession
RevokeSession revokes a specific session by ID
services/auth-service/internal/handlers/login_helpers.go:288
MethodRevokeToken
RevokeToken marks a token as revoked (requires Redis/database implementation)
services/auth-service/pkg/jwt/jwt.go:188
FunctionRow
({ label, value, strong, icon, tone = "default", }: { label: string; value: string; strong?: b
clients/console/src/components/RentModal.tsx:184
FunctionSaveConfig
SaveConfig saves the current configuration to the specified path. NOTE: This will overwrite the existing config file.
clients/provider-daemon/internal/config/config.go:276
MethodSaveJob
SaveJob saves the complete state of a job to the database. It uses an UPSERT (INSERT ON CONFLICT DO UPDATE) operation.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:77
MethodSend2FACodeEmail
Send2FACodeEmail sends a 2FA verification code
services/auth-service/internal/email/smtp_service.go:120
← previousnext →801–900 of 1,089, ranked by callers