Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
apiserver
command
The entry point for the batch gateway API server.
|
The entry point for the batch gateway API server. |
|
batch-gc
command
|
|
|
batch-processor
command
|
|
|
internal
|
|
|
apiserver/batch
The file provides HTTP handlers for batch-related API endpoints.
|
The file provides HTTP handlers for batch-related API endpoints. |
|
apiserver/common
The file implements server configuration management and validation for API server.
|
The file implements server configuration management and validation for API server. |
|
apiserver/file
The file provides HTTP handlers for file-related API endpoints.
|
The file provides HTTP handlers for file-related API endpoints. |
|
apiserver/health
The file provides HTTP handlers for health check endpoints.
|
The file provides HTTP handlers for health check endpoints. |
|
apiserver/metrics
The file defines Prometheus metrics and provides functions for recording HTTP request metrics.
|
The file defines Prometheus metrics and provides functions for recording HTTP request metrics. |
|
apiserver/middleware
The file implements panic recovery middleware that catches and handles panics.
|
The file implements panic recovery middleware that catches and handles panics. |
|
apiserver/readiness
The file provides HTTP handlers for readiness check endpoints.
|
The file provides HTTP handlers for readiness check endpoints. |
|
apiserver/server
The file provides the HTTP server implementation for the batch gateway API.
|
The file provides the HTTP server implementation for the batch gateway API. |
|
database/mock
The file provides in-memory mock implementations for DBClient.
|
The file provides in-memory mock implementations for DBClient. |
|
files_store/api
Package api provides interfaces for batch file storage operations.
|
Package api provides interfaces for batch file storage operations. |
|
files_store/fs
Package fs provides a filesystem-based implementation of the BatchFilesClient interface.
|
Package fs provides a filesystem-based implementation of the BatchFilesClient interface. |
|
files_store/io
Package io provides I/O utilities for file storage operations.
|
Package io provides I/O utilities for file storage operations. |
|
files_store/mock
Package mock provides mock implementations for testing.
|
Package mock provides mock implementations for testing. |
|
files_store/retryclient
Package retryclient wraps a BatchFilesClient with retry logic.
|
Package retryclient wraps a BatchFilesClient with retry logic. |
|
files_store/s3
Package s3 provides an S3-based implementation of the BatchFilesClient interface.
|
Package s3 provides an S3-based implementation of the BatchFilesClient interface. |
|
files_store/tracing
Package tracing provides an OpenTelemetry tracing wrapper for BatchFilesClient.
|
Package tracing provides an OpenTelemetry tracing wrapper for BatchFilesClient. |
|
gc/collector
Package collector implements the garbage collection logic for expired batch jobs and files.
|
Package collector implements the garbage collection logic for expired batch jobs and files. |
|
gc/config
Package config provides configuration loading and validation for the batch garbage collector.
|
Package config provides configuration loading and validation for the batch garbage collector. |
|
gc/metrics
Package metrics provides Prometheus instrumentation for the GC reconciler.
|
Package metrics provides Prometheus instrumentation for the GC reconciler. |
|
gc/reconciler
Package reconciler detects and recovers orphaned batch jobs that are stuck in non-terminal states because their processor crashed or lost connectivity.
|
Package reconciler detects and recovers orphaned batch jobs that are stuck in non-terminal states because their processor crashed or lost connectivity. |
|
shared/batch_utils
this file contains the utility functions for the batch object
|
this file contains the utility functions for the batch object |
|
shared/config
Package config provides shared configuration types used by apiserver, processor, and gc.
|
Package config provides shared configuration types used by apiserver, processor, and gc. |
|
shared/openai
The file defines error types and error handling utilities for OpenAI-compatible responses.
|
The file defines error types and error handling utilities for OpenAI-compatible responses. |
|
util/clientset
Package clientset provides factory functions for creating all external clients used by the batch gateway apiserver and processor.
|
Package clientset provides factory functions for creating all external clients used by the batch gateway apiserver and processor. |
|
util/logging
The file provides logging utilities and constants for the application.
|
The file provides logging utilities and constants for the application. |
|
util/ptr
Package ptr provides generic helpers for working with pointer values.
|
Package ptr provides generic helpers for working with pointer values. |
|
util/retry
Package retry provides a shared retry configuration and exponential backoff helper backed by github.com/cenkalti/backoff/v5.
|
Package retry provides a shared retry configuration and exponential backoff helper backed by github.com/cenkalti/backoff/v5. |
|
util/semaphore
Package semaphore provides a semaphore implementation for controlling concurrent access to a limited resource.
|
Package semaphore provides a semaphore implementation for controlling concurrent access to a limited resource. |
|
pkg
|
|
|
test
|
|
|
regression
Package regression contains regression tests for API schema backward compatibility.
|
Package regression contains regression tests for API schema backward compatibility. |
Click to show internal directories.
Click to hide internal directories.
