Documentation
¶
Overview ¶
Package mirror implements the export file mirroring job.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Database database.Config
ObservabilityExporter observability.Config
SecretManager secrets.Config
Storage storage.Config
Port string `env:"PORT, default=8080"`
// Max file sizes for download. 1mb for index files, 20mb for zip files.
MaxIndexBytes int64 `env:"MAX_INDEX_BYTES, default=1048576"`
MaxZipBytes int64 `env:"MAX_ZIP_BYTES, default=20971520"`
// IndexFileDownloadTimeout is the amount of time to allow to download the
// entire index file.
IndexFileDownloadTimeout time.Duration `env:"INDEX_FILE_DOWNLOAD_TIMEOUT, default=30s"`
// ExportFileDownloadTimeout, ExportFileDeleteTimeout, and
// ExportFileUploadTimeout are the maximum amount of time to wait when
// downloading, deleting, and uploading an export file, respectively.
ExportFileDownloadTimeout time.Duration `env:"EXPORT_FILE_DOWNLOAD_TIMEOUT, default=1m"`
ExportFileDeleteTimeout time.Duration `env:"EXPORT_FILE_DELETE_TIMEOUT, default=10s"`
ExportFileUploadTimeout time.Duration `env:"EXPORT_FILE_UPLOAD_TIMEOUT, default=1m"`
MaxRuntime time.Duration `env:"MAX_RUNTIME, default=14m"`
MirrorLockDuration time.Duration `env:"MIRROR_LOCK_DURATION, default=15m"`
}
func (*Config) BlobstoreConfig ¶
func (*Config) DatabaseConfig ¶
func (*Config) ObservabilityExporterConfig ¶
func (c *Config) ObservabilityExporterConfig() *observability.Config
func (*Config) SecretManagerConfig ¶
type FileStatus ¶
Click to show internal directories.
Click to hide internal directories.