Added file management.
This commit is contained in:
parent
09b8393c8a
commit
3eab2f5562
12 changed files with 201 additions and 21 deletions
|
|
@ -57,6 +57,7 @@ type (
|
|||
App AppConfig
|
||||
Cache CacheConfig
|
||||
Database DatabaseConfig
|
||||
Files FilesConfig
|
||||
Tasks TasksConfig
|
||||
Mail MailConfig
|
||||
}
|
||||
|
|
@ -105,6 +106,11 @@ type (
|
|||
TestConnection string
|
||||
}
|
||||
|
||||
// FilesConfig stores the file system configuration
|
||||
FilesConfig struct {
|
||||
Directory string
|
||||
}
|
||||
|
||||
// TasksConfig stores the tasks configuration
|
||||
TasksConfig struct {
|
||||
Goroutines int
|
||||
|
|
|
|||
|
|
@ -32,6 +32,9 @@ database:
|
|||
connection: "dbs/main.db?_journal=WAL&_timeout=5000&_fk=true"
|
||||
testConnection: ":memory:?_journal=WAL&_timeout=5000&_fk=true"
|
||||
|
||||
files:
|
||||
directory: "uploads"
|
||||
|
||||
tasks:
|
||||
goroutines: 1
|
||||
releaseAfter: "15m"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue