Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServerAddress string `mapstructure:"server_address"` Storage StorageConfig `mapstructure:"storage"` SQLite struct { DBPath string `mapstructure:"db_path"` } `mapstructure:"sqlite"` }
Config holds configuration values for the application.
func LoadConfig ¶
LoadConfig reads configuration from config.yaml (or other supported formats) in the current directory.
type LocalStorageConfig ¶
type LocalStorageConfig struct {
Directory string `mapstructure:"directory"`
}
type S3StorageConfig ¶
type StorageConfig ¶
type StorageConfig struct { Type string `mapstructure:"type"` // Allowed values: "gcs", "s3", "local" S3 *S3StorageConfig `mapstructure:"s3"` Local *LocalStorageConfig `mapstructure:"local"` }
StorageConfig holds settings for the storage backend.
Click to show internal directories.
Click to hide internal directories.