Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "unknown"
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Token string `env:"TOKEN"` UploadDir string `env:"UPLOAD_DIR" envDefault:"./uploads"` Port int `env:"PORT" envDefault:"8080"` MaxSizeUpload int64 `env:"MAX_SIZE_UPLOAD" envDefault:"104857600"` // 100 MB DBHost string `env:"DB_HOST" envDefault:"localhost"` DBPort string `env:"DB_PORT" envDefault:"5432"` DBUser string `env:"DB_USER" envDefault:"user"` DBPassword string `env:"DB_PASSWORD" envDefault:"password"` DBName string `env:"DB_NAME" envDefault:"app_db"` }
func (*Config) GetUploadDir ¶
Click to show internal directories.
Click to hide internal directories.