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
NewAPIKeyHandler
NewAPIKeyHandler creates a new API key handler
services/auth-service/internal/handlers/api_keys.go:44
Function
NewAuthHandler
NewAuthHandler creates a new AuthHandler.
services/api-gateway/internal/handlers/auth.go:21
Function
NewAuthMiddleware
NewAuthMiddleware creates a new auth middleware
services/auth-service/internal/middleware/auth.go:20
Function
NewBillingHandler
NewBillingHandler creates a new billing handler
services/api-gateway/internal/handlers/billing.go:25
Function
NewBillingService
NewBillingService creates a new billing service
services/billing-payment-service/internal/service/billing.go:48
Function
NewClient
NewClient creates a new billing service client
services/api-gateway/internal/billing/client.go:30
Function
NewClient
NewClient creates a new billing service client
services/scheduler-orchestrator-service/internal/billing/integration.go:30
Function
NewClient
NewClient creates a new Provider Registry client.
services/scheduler-orchestrator-service/internal/clients/provider_registry.go:68
Function
NewClient
NewClient creates a new Solana client for SPL token (USDC) operations
services/billing-payment-service/internal/solana/client.go:52
Function
NewClient
NewClient creates a new billing service client
clients/provider-daemon/internal/billing/client.go:42
Function
NewClient
NewClient creates a new NATS client for the provider daemon.
clients/provider-daemon/internal/nats/client.go:30
Function
NewContextLogger
NewContextLogger creates a new context-aware logger
services/provider-registry-service/internal/logging/context.go:85
Function
NewCorrelationID
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
Function
NewDatabaseError
NewDatabaseError creates a new DatabaseError
services/provider-registry-service/internal/errors/errors.go:100
Function
NewDatabaseError
(operation string, cause error)
services/billing-payment-service/internal/models/errors.go:233
Function
NewDetector
NewDetector creates a new GPU detector
clients/provider-daemon/internal/gpu/detector.go:61
Function
NewDockerExecutor
NewDockerExecutor creates a new DockerExecutor. It initializes a Docker client, preferring execCfg.DockerEndpoint if provided.
clients/provider-daemon/internal/executor/executor.go:158
Function
NewEngine
NewEngine creates a new pricing engine
services/billing-payment-service/internal/pricing/engine.go:45
Function
NewErrorResponse
NewErrorResponse creates a new error response
services/auth-service/internal/handlers/errors.go:134
Function
NewHandler
NewHandler creates a new task handler.
clients/provider-daemon/internal/tasks/handler.go:54
Function
NewHealthMonitor
NewHealthMonitor creates a health monitor. interval defaults to 30s and failureThreshold to 3 when non-positive.
clients/provider-daemon/internal/gpu/health.go:30
Function
NewHub
NewHub creates a new Hub
services/api-gateway/internal/websocket/hub.go:50
Function
NewInMemoryProviderStore
NewInMemoryProviderStore creates a new in-memory provider store.
services/provider-registry-service/internal/store/memory.go:20
Function
NewInsufficientFundsError
(required, available string)
services/billing-payment-service/internal/models/errors.go:201
Function
NewInternalJob
(job Job)
services/scheduler-orchestrator-service/internal/models/job.go:56
Function
NewJobConsumer
NewJobConsumer creates a new JobConsumer. It will also try to get a JetStream context.
services/scheduler-orchestrator-service/internal/scheduler/consumer.go:35
Function
NewJobHandler
NewJobHandler creates a new JobHandler.
services/api-gateway/internal/handlers/job.go:28
Function
NewLogHandler
NewLogHandler creates a new LogHandler.
services/api-gateway/internal/handlers/logs.go:21
Function
NewManager
NewManager creates a new JWT manager
services/auth-service/pkg/jwt/jwt.go:47
Function
NewManagerFromConfig
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
Function
NewMinioClient
NewMinioClient creates and returns a new MinIO client.
services/storage-service/internal/storage/minio.go:25
Function
NewPasswordResetHandler
NewPasswordResetHandler creates a new password reset handler
services/auth-service/internal/handlers/password_reset.go:55
Function
NewPostgresJobStore
NewPostgresJobStore creates a new PostgresJobStore. It expects a connected pgxpool.Pool.
services/scheduler-orchestrator-service/internal/store/postgres_jobstore.go:26
Function
NewPostgresProviderStore
NewPostgresProviderStore creates a new PostgresProviderStore.
services/provider-registry-service/internal/store/postgres_providerstore.go:28
Function
NewPostgresStore
NewPostgresStore creates a new PostgreSQL store
services/billing-payment-service/internal/store/postgres.go:26
Function
NewProvider
NewProvider creates a new Provider instance with a generated ID and timestamps.
services/provider-registry-service/internal/models/provider.go:61
Function
NewProviderError
NewProviderError creates a new ProviderError
services/provider-registry-service/internal/errors/errors.go:62
Function
NewProviderHandler
NewProviderHandler creates a new ProviderHandler with the given dependencies.
services/provider-registry-service/internal/handlers/provider.go:41
Function
NewProviderNotAvailableError
(providerID string)
services/billing-payment-service/internal/models/errors.go:212
Function
NewProxyHandler
NewProxyHandler creates a new ProxyHandler.
services/api-gateway/internal/handlers/proxy.go:27
Function
NewRateLimitMiddleware
NewRateLimitMiddleware creates a new rate limit middleware
services/auth-service/internal/middleware/auth.go:257
Function
NewRateLimiter
NewRateLimiter creates a new Redis rate limiter
services/auth-service/internal/session/redis_store.go:253
Function
NewRedisStore
NewRedisStore creates a new Redis session store
services/auth-service/internal/session/redis_store.go:33
Function
NewRoundRobin
NewRoundRobin creates a new RoundRobin load balancer.
services/api-gateway/internal/loadbalancer/balancer.go:32
Function
NewSMTPService
NewSMTPService creates a new SMTP email service
services/auth-service/internal/email/smtp_service.go:33
Function
NewSchedulerExtender
NewSchedulerExtender creates a new Kubernetes Scheduler Extender
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:64
Function
NewScriptExecutor
NewScriptExecutor creates a new ScriptExecutor.
clients/provider-daemon/internal/executor/executor.go:47
Function
NewServer
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
Function
NewServer
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
Function
NewSessionNotFoundError
(sessionID string)
services/billing-payment-service/internal/models/errors.go:207
Function
NewSolanaError
(operation string, cause error)
services/billing-payment-service/internal/models/errors.go:228
Function
NewStorageHandler
NewStorageHandler creates a new StorageHandler.
services/storage-service/internal/api/handlers.go:30
Function
NewTask
NewTask creates a new Task from a Job and an assigned provider ID.
services/scheduler-orchestrator-service/internal/models/task.go:34
Function
NewTaskStatusUpdate
NewTaskStatusUpdate creates a new TaskStatusUpdate with the current timestamp.
clients/provider-daemon/internal/models/status.go:41
Function
NewTokenBlacklist
NewTokenBlacklist creates a new token blacklist
services/auth-service/internal/session/redis_store.go:316
Function
NewTransactionFailedError
(txnID string, cause error)
services/billing-payment-service/internal/models/errors.go:217
Function
NewTwoFactorHandler
NewTwoFactorHandler creates a new 2FA handler
services/auth-service/internal/handlers/two_factor.go:64
Function
NewValidationError
(field, message string)
services/billing-payment-service/internal/models/errors.go:222
Function
NewWalletNotFoundError
Common error constructors
services/billing-payment-service/internal/models/errors.go:196
Method
Next
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
Function
NotFound
()
clients/console/src/pages/NotFound.tsx:4
Method
OptionalAuth
OptionalAuth validates token if present but doesn't require it
services/auth-service/internal/middleware/auth.go:180
Function
Perk
({ icon, title, body }: { icon: React.ReactNode; title: string; body: string })
clients/console/src/pages/ProviderOnboarding.tsx:99
Method
PreStartContainer
PreStartContainer is called before starting a container
services/dantegpu-device-plugin/main.go:178
Method
Prioritize
Prioritize implements the prioritize extender endpoint
services/scheduler-orchestrator-service/internal/k8s/scheduler_extender.go:136
Function
ProcessUsageUpdate
ProcessUsageUpdate handles real-time usage updates from provider daemons
services/billing-payment-service/internal/handlers/billing.go:101
Method
Profile
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
Function
ProviderConsole
()
clients/console/src/components/ProviderConsole.tsx:18
Method
ProviderHeartbeat
ProviderHeartbeat handles heartbeat signals from providers.
services/provider-registry-service/internal/handlers/provider.go:266
Function
ProviderOnboarding
()
clients/console/src/pages/ProviderOnboarding.tsx:31
Function
PtrStringToTime
PtrStringToTime converts a string pointer in RFC3339 format to a time.Time pointer.
clients/provider-daemon/internal/models/cli_responses.go:95
Method
PublishStatus
(statusUpdate *models.TaskStatusUpdate)
clients/provider-daemon/internal/tasks/handler.go:25
Method
PublishStatus
PublishStatus sends a TaskStatusUpdate to the configured NATS subject.
clients/provider-daemon/internal/nats/client.go:256
Function
QueryProvider
({ children }: { children: ReactNode })
clients/console/src/providers/QueryProvider.tsx:7
Method
RateLimit
RateLimit applies rate limiting based on IP address
services/auth-service/internal/middleware/auth.go:262
Method
ReadPump
ReadPump pumps messages from the websocket connection to the hub
services/api-gateway/internal/websocket/hub.go:133
Function
Register
()
clients/console/src/pages/Register.tsx:10
Method
Register
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
Method
RegisterProvider
--- Handler Implementations --- RegisterProvider handles new provider registration.
services/provider-registry-service/internal/handlers/provider.go:90
Function
RegisterService
RegisterService registers this service instance with Consul.
services/provider-registry-service/internal/consul/registration.go:36
Function
RegisterService
RegisterService registers this service instance with Consul.
services/scheduler-orchestrator-service/internal/consul/registration.go:33
Function
RentModal
({ gpu, onClose }: { gpu: GpuListing | null; onClose: () => void })
clients/console/src/components/RentModal.tsx:27
Function
RentalRow
({ rental }: { rental: LocalRental })
clients/console/src/components/RentalRow.tsx:11
Function
RentalSession
()
clients/console/src/pages/RentalSession.tsx:33
Method
RequestPasswordReset
RequestPasswordReset initiates password reset process
services/auth-service/internal/handlers/password_reset.go:64
Function
RequestPayout
RequestPayout handles provider payout requests
services/billing-payment-service/internal/handlers/billing.go:285
Method
RequestProviderPayout
RequestProviderPayout forwards a provider payout request to the billing service, which settles accrued USDC on-chain.
services/api-gateway/internal/handlers/billing.go:340
Method
RequireAnyRole
RequireAnyRole checks if user has any of the specified roles
services/auth-service/internal/middleware/auth.go:121
Method
RequirePermission
RequirePermission checks if user has a specific permission
services/auth-service/internal/middleware/auth.go:154
Method
RequireRole
RequireRole checks if user has a specific role
services/auth-service/internal/middleware/auth.go:93
Method
ResendVerification
ResendVerification resends verification email
services/auth-service/internal/handlers/registration.go:359
Method
Reset
Reset resets the rate limit for a key
services/auth-service/internal/session/redis_store.go:299
Method
ResetPassword
ResetPassword resets password using reset token
services/auth-service/internal/handlers/password_reset.go:156
Method
RevokeAPIKey
RevokeAPIKey revokes an API key
services/auth-service/internal/handlers/api_keys.go:167
Method
RevokeSession
RevokeSession revokes a specific session by ID
services/auth-service/internal/handlers/login_helpers.go:288
Method
RevokeToken
RevokeToken marks a token as revoked (requires Redis/database implementation)
services/auth-service/pkg/jwt/jwt.go:188
Function
Row
({ label, value, strong, icon, tone = "default", }: { label: string; value: string; strong?: b
clients/console/src/components/RentModal.tsx:184
Function
SaveConfig
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
Method
SaveJob
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
Method
Send2FACodeEmail
Send2FACodeEmail sends a 2FA verification code
services/auth-service/internal/email/smtp_service.go:120
← previous
next →
801–900 of 1,089, ranked by callers